1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

alias: improved prev alias

This commit is contained in:
tiyn 2024-02-23 02:33:03 +01:00
parent cac6e5258b
commit e0bdc18ba6

View File

@ -10,6 +10,7 @@ alias "..."="cd ../.."
alias "...."="cd ../../.."
alias "....."="cd ../../../.."
alias "dockervol"="cd /var/lib/docker/volumes"
alias previous='cd ../"$(ls -F .. | grep '/' | grep -B1 -xF "${PWD##*/}/" | head -n 1)"'
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)"'