aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/aliases.zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-12 14:29:29 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-12 14:29:29 +0200
commit04dc98146e1ae31b9b9344ab02e32e1b1d6a518d (patch)
treed18e6159fb4593d7192a892605f625f3781d3b36 /zsh/aliases.zsh
parent05550a848214aa0b709c80a471997103d85006fb (diff)
downloaddotfiles-04dc98146e1ae31b9b9344ab02e32e1b1d6a518d.tar.xz
zsh: Remove git branch from prompt
Diffstat (limited to 'zsh/aliases.zsh')
-rw-r--r--zsh/aliases.zsh10
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