Some Tricks - test482/dotfiles GitHub Wiki

  • Start tmux on every shell login
if which tmux >/dev/null 2>&1; then
    #if not inside a tmux session, and if no session is started, start a new session
    test -z "$TMUX" && (tmux attach -t tmux || tmux new-session -s tmux)
fi
  • Use Trash replace rm
alias rm='trash-put'