alias: added prev and next for sibling cd

master
tiyn 1 year ago
parent fa686d824f
commit 93d1e33506

@ -10,6 +10,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"

Loading…
Cancel
Save