X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.zsh_aliases;h=e505d10b19d2648804d979596e037fe76fb429d4;hb=5c5cde223c9d7afa6603f272fdf0b1f8fce7ef5d;hp=b20247e7d6061b087bf3d4bcd63d0fac86abc702;hpb=637ad8ffdd35a44708e1b6bfbf04e71fb22a984f;p=user%2Fhenk%2Fvcsh%2Fzsh.git diff --git a/.zsh_aliases b/.zsh_aliases index b20247e..e505d10 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -2,10 +2,11 @@ alias ap='ansible-playbook' #alias b='' #alias c='' -alias c='ncal -3w' +alias c='ncal -3wM' #alias d='' alias e='nvim' #alias f='' +alias fd='fdfind' alias g='git' #alias h='' #alias i='' @@ -18,6 +19,8 @@ alias l='/usr/share/nvim/runtime/macros/less.sh' #alias n='' #alias o='' alias p='puppet' +alias pat='puppet apply --test /etc/puppet/manifests/site.pp' +alias pno='puppet apply --test --noop /etc/puppet/manifests/site.pp' #alias q='' # r is a shell builtin #alias r='' @@ -30,11 +33,11 @@ alias v='nvim' #alias w='' # w is a system executable #alias x='' -alias xs='xpanes -t -ss -c "ssh {}"' +alias xs='xpanes -t -s -c "ssh {}"' #alias y='' #alias z='' -alias ip='ip -br -c a' +alias ip='ip -brief -color=auto' alias ls='ls --color=auto -b' alias mv='mv -i' @@ -49,6 +52,12 @@ alias diary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/$(date +%F).ot alias dreamdiary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/dreams_$(date +%F).otl' alias positivediary='vim ~/Data/henksfiles/workinprogress/Dokumente/diary/positive_$(date +%F).otl' alias dramalog='e Data/henksfiles/workinprogress/Dokumente/Beziehung/dramalog.otl' +alias jdiary='vim ~/Data/henksfiles/workinprogress/Dokumente/jdiary/$(date +%F).otl' + +#alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +function alert() { + notify-send --urgency=low -i ${(%):-%(?.terminal.error)} ${history[$HISTCMD]%[;&|][[:space:]]##alert} +} alias datesortimages='exiftool "-Directory