changes to zsh aliases

This commit is contained in:
kageru 2018-04-01 20:46:40 +02:00
parent 6faedbb0c7
commit 5b13ade37c
2 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ alias qaac_release=/mnt/hephaestos/qaac/qaac91
alias define='python /home/kageru/programming/mwebster/mwebster.py'
alias nanaone-stream='mpv rtmp://live1.brb.re/live/nanaone'
alias ls='exa'
alias exat='exa --tree -L 3'
alias animesync='python /home/kageru/programming/animesync-personal/animesync.py'
alias autoremove='sudo pacaur -R $(pacaur -Qdtq)'
export EDITOR=/usr/bin/vim
@ -20,9 +21,11 @@ alias ll='ls -l'
alias la='ls -a'
alias grep="grep --colour"
alias clip='xsel -b'
alias aurnoverify='yaourt --m-arg "--skipinteg" '
alias bitrateviewer='wine "/home/kageru/.wine/drive_c/Program Files (x86)/BitrateViewer/BitrateViewer.exe"'
alias colorpicker="maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-"
alias fixgit='eval "$(ssh-agent -s)"; ssh-add ~/.ssh/git'
alias sv='systemctl'
alias xo='xdg-open'
alias config='/usr/bin/git --git-dir=/home/kageru/dotfiles/ --work-tree=/home/kageru'
alias -g ...='../../' #cd ...

6
.zshrc
View File

@ -22,8 +22,8 @@ precmd () {
setopt prompt_subst
# I usually change the hostname color between my systems
hostcolor="66"
PROMPT="%(!.%F{220}[%F{196}%n%F{220}@%F{$hostcolor}%m %F{196}%c%F{204}\${vcs_info_msg_0_}%F{220}] %(?/%F{2}/%F{1})#.%F{196}[%F{220}%n%F{196}@%F{$hostcolor}%m %F{146}%c%F{111}\${vcs_info_msg_0_}%F{196}] %(?/%F{2}/%F{1})Δ)%f "
hostcolor="75"
PROMPT="%(!.%F{220}[%F{196}%n%F{220}@%F{$hostcolor}%m %F{196}%c%F{204}\${vcs_info_msg_0_}%F{220}] %(?/%F{3}/%F{1})#.%F{196}[%F{220}%n%F{196}@%F{$hostcolor}%m %F{146}%c%F{111}\${vcs_info_msg_0_}%F{196}] %(?/%F{3}/%F{1})Δ)%f "
# the same prompt without git/vcs stuff
# PROMPT="%(!.%F{220}[%F{196}%n%F{220}@%F{$hostcolor}%m %F{196}%c%F{220}] %(?/%F{2}/%F{1})#.%F{196}[%F{220}%n%F{196}@%F{$hostcolor}%m %F{146}%c%F{196}] %(?/%F{2}/%F{1})Δ)%f "
@ -39,6 +39,8 @@ setopt noauto_remove_slash
setopt list_types
setopt complete_in_word
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# disclaimer: I blatantly copied all of this without actually knowing what it does. ¯\_(ツ)_/¯
ZSHCACHEDIR=/tmp/$USER-zsh-cache