From ce91e79b50df9e906518400e95b0b5a445f8e312 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 31 Oct 2021 18:11:03 +0100 Subject: Added exports for vim fugitive dotfiles support --- .bash_profile | 4 ++++ .bashrc | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 40853ae..efd1abf 100644 --- a/.bash_profile +++ b/.bash_profile @@ -18,4 +18,8 @@ export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc +# For vim fugitive dotfiles support +export GIT_DIR=$HOME/.cfg +export GIT_WORK_TREE=$HOME + [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1 diff --git a/.bashrc b/.bashrc index 1f25258..87e298b 100644 --- a/.bashrc +++ b/.bashrc @@ -120,7 +120,6 @@ export VISUAL=vim export PS1='\[\033[35m\]\u@\h\[\033[37m\]:\[\033[0;34m\]\w\[\033[37m\]$ ' # Shell prompt export PAGER=most -alias cvim='GIT_DIR=$HOME/.cfg GIT_WORK_TREE=$HOME nvim' alias mv='mv -i' alias rm='rm -i' alias gs='git status' -- cgit v1.2.3-70-g09d2