.bashrc chopped into separate file.
This commit is contained in:
25
config/.profile.aliases
Executable file
25
config/.profile.aliases
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
if [ $kernel == "Darwin" ]; then
|
||||
alias ls='ls -a'
|
||||
alias ll='ls -la'
|
||||
alias pd='pushd >/dev/null'
|
||||
alias bd='popd'
|
||||
else
|
||||
alias ls='ls -a --color=auto'
|
||||
alias ll='ls -la --color=auto'
|
||||
alias pd='pushd >/dev/null'
|
||||
alias bd='popd'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
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$//'\'')"'
|
||||
|
||||
Reference in New Issue
Block a user