Consolidate aliases
This commit is contained in:
parent
484b80ad57
commit
99ef09bc55
|
@ -1,5 +1,17 @@
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
|
|
||||||
|
# Enable color support if possible
|
||||||
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
|
test -r ${HOME}/.dircolors && eval "$(dircolors -b ${HOME}/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias dir='dir --color=auto'
|
||||||
|
alias vdir='vdir --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
fi
|
||||||
|
|
||||||
# Vim stuff
|
# Vim stuff
|
||||||
alias vim="${HOME}/.nix-profile/bin/nvim"
|
alias vim="${HOME}/.nix-profile/bin/nvim"
|
||||||
alias :q="exit"
|
alias :q="exit"
|
||||||
|
|
12
bash/bashrc
12
bash/bashrc
|
@ -71,18 +71,6 @@ PROMPT_COMMAND="source ${HOME}/.dotfiles/bash/prompt.sh"
|
||||||
# Bell when prompt is returned to mark as urgent
|
# Bell when prompt is returned to mark as urgent
|
||||||
PROMPT_COMMAND="$PROMPT_COMMAND;printf \"\a\"; history -a"
|
PROMPT_COMMAND="$PROMPT_COMMAND;printf \"\a\"; history -a"
|
||||||
|
|
||||||
# Enable color support if possible
|
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
|
||||||
test -r ${HOME}/.dircolors && eval "$(dircolors -b ${HOME}/.dircolors)" || eval "$(dircolors -b)"
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias dir='dir --color=auto'
|
|
||||||
alias vdir='vdir --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias fgrep='fgrep --color=auto'
|
|
||||||
alias egrep='egrep --color=auto'
|
|
||||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Load aliases
|
# Load aliases
|
||||||
if [ -f ${HOME}/.dotfiles/bash/bash_aliases ]; then
|
if [ -f ${HOME}/.dotfiles/bash/bash_aliases ]; then
|
||||||
. "${HOME}/.dotfiles/bash/bash_aliases"
|
. "${HOME}/.dotfiles/bash/bash_aliases"
|
||||||
|
|
Loading…
Reference in New Issue