From 04dc98146e1ae31b9b9344ab02e32e1b1d6a518d Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 12 Apr 2015 14:29:29 +0200 Subject: zsh: Remove git branch from prompt --- zsh/aliases.zsh | 10 ---------- 1 file changed, 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 -- cgit v1.2.3-70-g09d2