diff options
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gkleen@sif/zshrc | 6 |
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 | ||
419 | while read -r -d $'\0' d _ s; do | ||
420 | hash -d ${s}=${d} | ||
421 | done < <(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 | |||
419 | alias '..'='cd ..' | 425 | alias '..'='cd ..' |
420 | alias -g L='| less' | 426 | alias -g L='| less' |
421 | alias -g S='&> /dev/null' | 427 | alias -g S='&> /dev/null' |