mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 22:47:29 +01:00
36 lines
709 B
Plaintext
36 lines
709 B
Plaintext
# Unix
|
|
|
|
# Detect which `ls` flavor is in use
|
|
if ls --color > /dev/null 2>&1; then # GNU `ls`
|
|
ls_colorflag="--color"
|
|
else # BSD like `ls`
|
|
ls_colorflag="-G"
|
|
fi
|
|
|
|
alias ls="ls ${ls_colorflag}"
|
|
alias ll='ls -al'
|
|
alias ff='find . -name'
|
|
alias ln='ln -v'
|
|
alias mkdir='mkdir -p'
|
|
alias e='$EDITOR'
|
|
alias v='$VISUAL'
|
|
alias _='sudo'
|
|
alias nohist='unset HISTFILE'
|
|
|
|
alias ta='tmux attach -t'
|
|
alias ts='tmux new-session -s'
|
|
alias tl='tmux list-sessions'
|
|
|
|
alias did="vim +'normal Go' +'r\!date' ~/did.txt"
|
|
|
|
if [ $OSTYPE == 'linux-gnu' ]
|
|
then
|
|
alias open="xdg-open"
|
|
fi
|
|
|
|
# Pretty print the path
|
|
alias path='echo $PATH | tr -s ":" "\n"'
|
|
|
|
# Include custom aliases
|
|
[[ -f ~/.aliases.local ]] && source ~/.aliases.local
|