alias: added prev and next cd

server
tiyn 1 year ago
parent 879dfa8d5e
commit 768a4b0aec

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

Loading…
Cancel
Save