switch to own prompt configuration
This commit is contained in:
parent
67579a96fa
commit
92b4a02572
1 changed files with 14 additions and 5 deletions
19
shell/zshrc
19
shell/zshrc
|
@ -1,8 +1,6 @@
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
ZSH_THEME="robbyrussell"
|
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
if [ -f ~/.dotfiles/shell/plugins ]
|
if [ -f ~/.dotfiles/shell/plugins ]
|
||||||
then
|
then
|
||||||
|
@ -19,6 +17,7 @@ fi
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
|
@ -36,12 +35,25 @@ alias la='ls -la'
|
||||||
alias :q='exit'
|
alias :q='exit'
|
||||||
alias fresh="source ~/.zshrc"
|
alias fresh="source ~/.zshrc"
|
||||||
|
|
||||||
|
# ZSH Theme
|
||||||
|
ZSH_THEME=""
|
||||||
|
|
||||||
|
PROMPT_COLOR="cyan"
|
||||||
|
|
||||||
# localcommands
|
# localcommands
|
||||||
if [ -f ~/.dotfiles/shell/localcommands ]
|
if [ -f ~/.dotfiles/shell/localcommands ]
|
||||||
then
|
then
|
||||||
source ~/.dotfiles/shell/localcommands
|
source ~/.dotfiles/shell/localcommands
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
|
||||||
|
PROMPT+=' %{$fg[${PROMPT_COLOR}]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
|
|
||||||
# Tmuxinator autocomplete
|
# Tmuxinator autocomplete
|
||||||
if [ -f ~/.bin/tmuxinator.zsh ]; then
|
if [ -f ~/.bin/tmuxinator.zsh ]; then
|
||||||
source ~/.bin/tmuxinator.zsh
|
source ~/.bin/tmuxinator.zsh
|
||||||
|
@ -58,6 +70,3 @@ if _has ruby;
|
||||||
then
|
then
|
||||||
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue