From 92b4a02572f7669c8de00c7e33cc60384aa4fdd2 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Sat, 19 Dec 2020 19:42:26 +0100 Subject: [PATCH] switch to own prompt configuration --- shell/zshrc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/shell/zshrc b/shell/zshrc index 1efbe1f..27cac17 100644 --- a/shell/zshrc +++ b/shell/zshrc @@ -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