alias: improved prev alias

master
tiyn 10 months ago
parent cac6e5258b
commit e0bdc18ba6

@ -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)"'

Loading…
Cancel
Save