summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-06-20 10:27:25 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-06-20 10:27:25 +0200
commit7f3bbba059828a8cb7962177ed737f4db2eb7209 (patch)
tree34d14a118a00d15a4283824a8b8dc843af20becd /accounts
parent0e495ea05daee74d3f608eeeebcadcf139adf76c (diff)
downloadnixos-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/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'