1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-27 21:47:46 +01:00

alias: added prev and next for sibling cd

This commit is contained in:
tiyn 2023-10-20 00:14:38 +02:00
parent fa686d824f
commit 93d1e33506

View File

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