From 3206fdc0d987df62252b5a22f382b40a800402a1 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 14 Oct 2017 10:20:01 +0300 Subject: [PATCH] some non-migrating configuration should be around too for bash; also git grep is probably more efficient than grep --- aliases | 1 + bashrc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index ab40014..fead801 100644 --- a/aliases +++ b/aliases @@ -5,6 +5,7 @@ alias less='command less -R' alias mysql='command mysql --sigint-ignore' alias pacman='command pacman --color=auto' alias rgrep='command grep --exclude-dir=\.git -R' +alias ggrep='command git grep' alias tailf='command less -R +F' alias vi='command vim' alias whence='type -P' diff --git a/bashrc b/bashrc index bc1db2b..5165341 100644 --- a/bashrc +++ b/bashrc @@ -58,9 +58,11 @@ PROMPT_COMMAND=prompt_command # {{{ plugins and traps aliases="${HOME}/.aliases" plugins="${HOME}/.bashplugins" +localconf="${HOME}/.bashlocal" [[ -r "${aliases}" ]] && . "${aliases}" [[ -r "${plugins}" ]] && . "${plugins}" -unset aliases plugins +[[ -r "${localconf}" ]] && . "${localconf}" +unset aliases plugins localconf # we want to see exit code on error (it also has to be the last entry here) trap 'printf "${red}>>${reset} ${black}exit${reset} ${red}%s${reset}\n" "$?" >&2' ERR