Add ~/.lib/bin

Made pager.sh and editor.sh accesible from anywhere in the shell. Also
made pager.sh smart in that it will use emacsclient when INSIDE_EMACS
environment variable is set.
This commit is contained in:
2015-08-15 22:49:59 -07:00
parent 64012779c1
commit 9eaf9b2832
6 changed files with 12 additions and 6 deletions

View File

@@ -128,14 +128,14 @@ function emacs_pager {
}
# Make emacs the default editor.
export EDITOR="$HOME/.lib/editor.sh"
export EDITOR="$HOME/.lib/bin/editor.sh"
export ALTERNATE_EDITOR=""
export VISUAL="$EDITOR"
export GIT_EDITOR="$EDITOR"
# This actually gets executed in dotfiles/lib/shellrc.sh to make sure that it takes precedence over other settings
function inside_emacs_hook {
export PAGER="$HOME/.lib/pager.sh"
export PAGER="$HOME/.lib/bin/pager.sh"
export GITPAGER="$PAGER"
export MANPAGER="$PAGER"
}