summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-31 18:11:03 +0100
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-31 18:11:03 +0100
commitce91e79b50df9e906518400e95b0b5a445f8e312 (patch)
tree5e278dfda755aaa1212a93d19f6dff0aac9b37de
parentb79dcb8585e77535160784fd32243b023e12873f (diff)
Added exports for vim fugitive dotfiles support
-rw-r--r--.bash_profile4
-rw-r--r--.bashrc1
2 files changed, 4 insertions, 1 deletions
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'