all: simplify and prettify

This commit is contained in:
2019-03-12 12:39:47 +01:00
parent 15bae882c9
commit 33b0eed38a
2 changed files with 3 additions and 30 deletions

5
zshrc
View File

@@ -38,6 +38,7 @@ export CARP_DIR=$GH_HOME/carp/Carp/
export EDITOR=/usr/local/bin/vim
alias dob="git branch --merged | grep -vE '(\*)|(master)|(dev)' | xargs -n 1 git branch -d"
alias vi="stty stop '' -ixoff ; stty erase '^?'; vim"
alias em="/usr/local/bin/emacs"
alias mk="make"
alias g="git"
alias virtualenv2="python2.7 /usr/local/lib/python2.7/site-packages/virtualenv.py"
@@ -57,7 +58,7 @@ alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo
alias loc="cloc --read-lang-def=/Users/veitheller/.scripts/cloc.txt *"
alias ls="ls -a"
alias pbclear="echo -n '' | pbcopy"
PROMPT="%{$fg[red]%}%n%{$fg[white]%} at %{$fg[green]%}%m%{$fg[white]%}"$'\n'"=> "
PROMPT="%{$fg[red]%}%n%{$reset_color%} at %{$fg[green]%}%m%{$reset_color%}"$'\n'"=> "
expand-or-complete-with-dots(){
echo -n "e[31m.....\e[0m"
@@ -108,7 +109,7 @@ function rprompt-git-current-branch {
}
RPROMPT='`rprompt-git-current-branch`'
RPROMPT+="%{$fg[white]%}in %{$fg[yellow]%}%~%{$reset_color%}"
RPROMPT+="%{$reset_color%}in %{$fg[yellow]%}%~%{$reset_color%}"
save_dotfiles(){
local DOTPATH=~/Documents/Code/Github/.dotfiles/