Set prompt and pager differently when inside emacs

This commit is contained in:
2015-08-15 00:10:58 -07:00
parent 9c274c29f5
commit 60e4c76205
3 changed files with 9 additions and 1 deletions

View File

@@ -116,3 +116,10 @@ export EDITOR="$HOME/.lib/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="$EDITOR"
export GITPAGER="$EDITOR"
export MANPAGER="$EDITOR"
}