From cf2844bbb373aace5bf48d0e85089d4ceea167d5 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 30 Mar 2012 16:15:55 -0400 Subject: Remove ZSH gvim function and clean up .zshrc --- .zshrc | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index a627eb72..59855107 100644 --- a/.zshrc +++ b/.zshrc @@ -142,29 +142,11 @@ alias killlall='killall' alias irb='ripl' alias l='ls' -function gvim { - [ "$@" ] && =gvim --remote-silent $@ || =gvim -} - function prompt_char { - #[ -e ".git" ] && echo '+' && return - #git branch &> /dev/null && echo '+' && return - #[ -e ".hg" ] && echo '☿' && return - #hg root &> /dev/null && echo '☿' && return - #echo '$' echo '%(!.#.$)' } -function git_branch { - #[ -e ".git" ] && echo ':'${"$(cat .git/HEAD)"##*/} - #git branch &> /dev/null && echo -e '\033[32m:\033[33m'${"$(git branch)"##* } && return -} - -#setopt prompt_subst -#function chpwd { -PROMPT="%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~$(git_branch)%{$fg[green]%}]$(prompt_char)%{$terminfo[sgr0]$reset_color%} " -#} -#chpwd +PROMPT="%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} " RPROMPT="%(?..%{$terminfo[bold]$fg[green]%}[%{$fg[red]%}%?%{$fg[green]%}]%{$terminfo[sgr0]%})" source ~/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh @@ -181,9 +163,5 @@ ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=blue,bold' ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=yellow,bold' ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=yellow,bold' -#source .zsh-syntax-highlighting-filetypes/zsh-syntax-highlighting-filetypes.zsh - -#eval $(dircolors -b ~/stuff/LS_COLORS/LS_COLORS) - pacman -Qu > /dev/null && [ ! -f /var/lib/pacman/db.lck ] && sudo pacman -Syu echo -n -- cgit 1.4.1