find files

fd --base-directory '/path/to/dir/' -H --type 'f' --extension 'pdf'
fd --search-path '/path/to/dir/' -H --type 'f' --extension 'pdf'

cargo update all packages

cargo install --list | grep -v '^ ' | cut -d' ' -f 1 | xargs cargo install

diff two directories for file changes only

diff --brief -r /path/to/a /path/to/b

Opening all files in a tmux session in the same neovim instance

nvimr() { 
  if [ "$TERM_PROGRAM" = tmux ]; then
    pipeName="/tmp/$(tmux display-message -p '#S')-nvim.pipe"
    if [[ -e $pipeName ]]; then
      lvim --server $pipeName --remote-silent $@
      else
        lvim --listen $pipeName $@
    fi
  fi
}