Nvim support changes

This commit is contained in:
2021-04-10 20:07:26 -07:00
parent f21157994c
commit bd28feb6b8
2 changed files with 20 additions and 9 deletions

View File

@@ -1,11 +1,14 @@
# --------------------------------
# Shell RC
# --------------------------------
# If git-prompt does not exist, get it with following command:
#
# $ wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh
if [ -f /etc/bash_completion.d/git-prompt ]; then
source /etc/bash_completion.d/git-prompt
fi
if [ -f ~/git-prompt.sh ]; then
source ~/git-prompt.sh
if [ -f ~/bin/git-prompt.sh ]; then
source ~/bin/git-prompt.sh
fi
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 "  %s") \[\033[0m\]$ '
@@ -14,7 +17,6 @@ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\]
# Variables
#
export EDITOR=vim
export GOPATH=~/lang/go
export PATH=~/bin:$PATH
#
@@ -25,6 +27,7 @@ alias q=exit
alias a=clear
alias h=history
alias e=$EDITOR
alias n=nvim
#
# Functions