added zeptorc

This commit is contained in:
hellerve
2016-05-12 18:15:02 +02:00
parent 8efa97e819
commit add0e7f874
4 changed files with 14 additions and 9 deletions

15
zshrc
View File

@@ -22,7 +22,7 @@ export GOPATH=~/.go
export GOBIN=$GOPATH/bin
export GHC_HOME=/usr/local/bin
export CABAL_HOME=$HOME/.cabal/
export PATH=$GHC_HOME:$CABAL_HOME/bin:$PATH:/opt/local/bin:/usr/local/sbin:~/.cabal/bin:$GOBIN
export PATH=$GHC_HOME:$CABAL_HOME/bin:$PATH:/opt/local/bin:/usr/local/sbin:~/.cabal/bin:/usr/local/opt/llvm/bin:$GOBIN
export MANPATH=$MANPATH:/opt/local/share/man:/usr/local/opt/erlang/lib/erlang/man
export INFOPATH=$INFOPATH:/opt/local/share/info
export PYTHONSTARTUP=~/.pythonrc
@@ -77,7 +77,7 @@ alias tmv="tmux split-window"
alias tmh="tmux split-window -h"
alias tms="tmux select-pane -t"
alias tmk="killall tmux; tmux"
PROMPT="%{$fg[green]%}<%{$fg[red]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$fg[green]%}>%{$reset_color%} "
PROMPT="%{$fg[red]%}%n%{$reset_color%} at %{$fg[green]%}%m%{$fg[green]%}%{$reset_color%}"$'\n'"=> "
expand-or-complete-with-dots(){
echo -n "e[31m.....\e[0m"
@@ -133,23 +133,23 @@ function rprompt-git-current-branch {
color=%B%F{blue}
fi
echo "$color$name$action%f%b "
echo "on $color$name$action%f%b "
}
function cabal_sandbox_info() {
cabal_files=(*.cabal(N))
if [ $#cabal_files -gt 0 ]; then
if [ -f cabal.sandbox.config ]; then
echo "%{$fg[green]%}sandboxed%{$reset_color%}"
echo " is %{$fg[green]%}sandboxed%{$reset_color%}"
else
echo "%{$fg[red]%}not sandboxed%{$reset_color%}"
echo " is %{$fg[red]%}not sandboxed%{$reset_color%}"
fi
fi
}
RPROMPT='`rprompt-git-current-branch`'
RPROMPT+="%{$fg[yellow]%}%~%{$reset_color%}"
RPROMPT+=' `cabal_sandbox_info`'
RPROMPT+="in %{$fg[yellow]%}%~%{$reset_color%}"
RPROMPT+='`cabal_sandbox_info`'
function ghc-pkg-reset() {
read 'ans?erasing all your user ghc and cabal packages - are you sure (y/n) ? '
@@ -222,6 +222,7 @@ save_dotfiles(){
cp ~/.tmux.conf ${DOTPATH}tmux.conf
cp ~/.valgrindrc ${DOTPATH}valgrindrc
cp ~/.vimrc ${DOTPATH}vimrc
cp ~/.zeptorc ${DOTPATH}zeptorc
cp ~/.zshrc ${DOTPATH}zshrc
}