.bashrc chopped into separate file.

This commit is contained in:
2021-06-16 04:12:17 -07:00
parent 3cb73cb62c
commit 4609a035af
6 changed files with 186 additions and 113 deletions

25
config/.profile.aliases Executable file
View 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$//'\'')"'