summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc
index 712ec690..2d71f5a3 100644
--- a/accounts/gkleen@sif/zshrc
+++ b/accounts/gkleen@sif/zshrc
@@ -416,6 +416,12 @@ dichotomic_search() {
416 echo $min 416 echo $min
417} 417}
418 418
419while read -r -d $'\0' d _ s; do
420 hash -d ${s}=${d}
421done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -regex '\S+/[0-9]{2}[ws]/\S+' -print0 2>/dev/null | \
422 sed -zr 's|(.*/([0-9]{2}[ws])/(.+))|\1 \2 \3|' | \
423 sort -z -r -k2 | sort -z -s -k3 | uniq -z -f 2)
424
419alias '..'='cd ..' 425alias '..'='cd ..'
420alias -g L='| less' 426alias -g L='| less'
421alias -g S='&> /dev/null' 427alias -g S='&> /dev/null'