cd() {
change directory
print current directory (replace $HOME with ~)
ls
if [[ $1 = - ]]; then
command cd "$OLDPWD" || return 1
else
command cd "$@" || return 1
fi
ls
echo "${PWD//''}"
}
..() { cd .. ;}
...() { cd ../.. ;}
alias cdg='cd "$(git rev-parse --show-toplevel)"'
alias cdo='builtin cd'
...
https://www.youtube.com/watch?v=k7Yjejv8ULc