diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-20 10:27:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-20 10:27:25 +0200 |
commit | 7f3bbba059828a8cb7962177ed737f4db2eb7209 (patch) | |
tree | 34d14a118a00d15a4283824a8b8dc843af20becd /accounts | |
parent | 0e495ea05daee74d3f608eeeebcadcf139adf76c (diff) | |
download | nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.gz nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.bz2 nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.tar.xz nixos-7f3bbba059828a8cb7962177ed737f4db2eb7209.zip |
...
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' |