diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-12 14:29:29 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-12 14:29:29 +0200 |
commit | 04dc98146e1ae31b9b9344ab02e32e1b1d6a518d (patch) | |
tree | d18e6159fb4593d7192a892605f625f3781d3b36 /zsh | |
parent | 05550a848214aa0b709c80a471997103d85006fb (diff) | |
download | dotfiles-04dc98146e1ae31b9b9344ab02e32e1b1d6a518d.tar.xz |
zsh: Remove git branch from prompt
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/aliases.zsh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index ccdcff9..990c175 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -45,19 +45,9 @@ sp() { printf '%s' "$@"; printf '\n'; } have() { command -v "$1" >&/dev/null; } -function get_git_branch { - if [[ -d .git ]]; then - branch="$(< .git/HEAD)" - branch="${branch##*/} " - else - branch="" - fi -} - # Print basic prompt to the window title function precmd { print -Pn "\e];%n %~\a" - get_git_branch } # Print the current running command's name to the window title |