diff --git a/.config/aliasrc b/.config/aliasrc index af15733..3a17b32 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -11,6 +11,8 @@ alias "...."="cd ../../.." alias "....."="cd ../../../.." alias "......"="cd ../../../../.." alias "dockervol"="cd /var/lib/docker/volumes" +alias prev='cd ../"$(ls -F .. | grep '/' | grep -B1 -xF "${PWD##*/}/" | head -n 1)"' +alias next='cd ../"$(ls -F .. | grep '/' | grep -A1 -xF "${PWD##*/}/" | tail -n 1)"' # cp alias cp="cp -i"