switch to own prompt configuration

This commit is contained in:
Jidbo 2020-12-19 19:42:26 +01:00
parent 67579a96fa
commit 92b4a02572
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA

View file

@ -1,8 +1,6 @@
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# plugins
if [ -f ~/.dotfiles/shell/plugins ]
then
@ -19,6 +17,7 @@ fi
source $ZSH/oh-my-zsh.sh
# User configuration
# Helper Functions
@ -36,12 +35,25 @@ alias la='ls -la'
alias :q='exit'
alias fresh="source ~/.zshrc"
# ZSH Theme
ZSH_THEME=""
PROMPT_COLOR="cyan"
# localcommands
if [ -f ~/.dotfiles/shell/localcommands ]
then
source ~/.dotfiles/shell/localcommands
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
if [ -f ~/.bin/tmuxinator.zsh ]; then
source ~/.bin/tmuxinator.zsh
@ -58,6 +70,3 @@ if _has ruby;
then
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh