forked from colonelpanic/dotfiles
Set prompt and pager differently when inside emacs
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
@@ -1,3 +1,4 @@
|
||||
for filename in ~/.lib/shellrc/*; do
|
||||
source $filename
|
||||
done
|
||||
environment_variable_exists INSIDE_EMACS && inside_emacs_hook
|
||||
|
Reference in New Issue
Block a user