moving to emacs, some prompt changes

This commit is contained in:
Andrew Davidson 2023-04-10 22:11:42 -07:00
parent 739a9423de
commit 21feb328e5
Signed by: amd
SSH key fingerprint: SHA256:wVzFOuz2n/yUVVBFkpZQ0AOX6guwdUUzSeKWr8aLUiU

View file

@ -10,7 +10,9 @@
# Set some defaults.
export EDITOR="nvim"
export EDITOR="emacsclient -t"
export VISUAL="emacsclient -c -a emacs"
export ALTERNATE_EDITOR=""
export PATH=".:~/bin:~/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
@ -33,10 +35,6 @@ if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
HAS_APT=1
fi
if [[ -x `which yum >/dev/null 2>&1` ]]; then
HAS_YUM=1
fi
# _
@ -100,7 +98,7 @@ function git_prompt {
# Make a pretty prompt.
export PROMPT_COMMAND='history -a; if [ $? -ne 0 ];then ERROR_FLAG=1;else ERROR_FLAG=;fi;'
export PS1=${HOSTCOLOUR}${sh_light_gray}'\t | \h'${sh_green}':\w'${sh_light_gray}' $(git_prompt)'${sh_light_gray}'${ERROR_FLAG:+'${sh_light_red}'}\$ '${sh_norm}
export PS1=${HOSTCOLOUR}${sh_light_gray}'\h'${sh_green}':\w'${sh_light_gray}' $(git_prompt)'${sh_light_gray}'${ERROR_FLAG:+'${sh_light_red}'}\$ '${sh_norm}
# New files and folders should not be world readable
umask 0027
@ -197,11 +195,8 @@ alias nano='nano -ciw '
# shortcut for tmux command
alias tm="tmux new-session -A -s main"
# always use nvim
alias vim='nvim'
alias vi='nvim'
alias nv='nvim'
# emacsclient
alias ec="emacsclient -n -c -a emacs"