Unix Diff two directories¶
Note: -i ""
is only for MacOS. More here.
Moving around¶
# inspiration from https://twitter.com/fatih/status/1381555413083168769
# cd to the root of git repo
alias cdr="cd $(git rev-parse --show-toplevel)"
# use fzf to quickly cd into subdirectories
function c() {
local selected_directory
selected_directory=$(fd -t d | fzf --height=6 --layout=reverse)
if [ -n "$selected_directory" ]; then
cd $selected_directory
fi
}