# vim: set ft=sh sw=2 et : alias dos2unix='sed "s/%//"' alias tmux='tmux -2' if command -v tmuxinator >/dev/null 2>&1; then alias mux='tmuxinator' fi alias ls='ls --color=auto' alias ll='\ls -l' alias lla='\ls -la' alias lt='\ls --color=auto -lhFart' if command -v lsd >/dev/null 2>&1; then alias ls='lsd' alias ll='lsd -l' alias lla='lsd -la' fi alias grep='grep --color=auto' if [[ -n "$TMUX" ]]; then alias fzf='fzf-tmux' fi # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert if [[ "$OSTYPE" == "linux-gnu" ]]; then alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' fi