Dumping the cruft, sprucing up the prompt
This commit is contained in:
parent
c3c10f3068
commit
b11f40f211
2 changed files with 13 additions and 14 deletions
12
bashrc
12
bashrc
|
@ -9,3 +9,15 @@ export DOTFILES=$HOME/.dotfiles
|
|||
|
||||
bind 'set show-all-if-ambiguous on'
|
||||
bind 'TAB:menu-complete'
|
||||
|
||||
git_super_status() {
|
||||
echo ''
|
||||
}
|
||||
|
||||
blue=$(tput setaf 4)
|
||||
reset=$(tput sgr0)
|
||||
grey=$(tput setaf 244)
|
||||
|
||||
PS1='
|
||||
\[$blue\]\w $(git_super_status)
|
||||
\[$grey\]\$ \[$reset\]'
|
||||
|
|
15
zshrc
15
zshrc
|
@ -45,18 +45,6 @@ git_branch() {
|
|||
(command git symbolic-ref -q HEAD || command git name-rev --name-only --no-undefined --always HEAD) 2>/dev/null
|
||||
}
|
||||
|
||||
function username() {
|
||||
if [[ `whoami` != 'josh' ]]; then
|
||||
echo "%F{248}%n%F{reset}"
|
||||
fi
|
||||
}
|
||||
|
||||
function server() {
|
||||
if [[ `hostname` != josh-* ]]; then
|
||||
echo "%F{244}@%F{magenta}%m%F{reset} "
|
||||
fi
|
||||
}
|
||||
|
||||
source $DOTFILES/vendor/olivierverdier/zsh-git-prompt/zshrc.sh
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
||||
|
@ -83,9 +71,8 @@ git_super_status() {
|
|||
fi
|
||||
}
|
||||
|
||||
PROMPT_USER="$(username)$(server)"
|
||||
PROMPT='
|
||||
%F{reset}$PROMPT_USER%F{blue}%~ $(git_super_status)
|
||||
%F{blue}%~ $(git_super_status)
|
||||
%F{244}%# %F{reset}'
|
||||
|
||||
source $DOTFILES/vendor/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue