summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-31 14:52:26 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-31 15:13:16 +0200
commitb53322c1dd927d591c766aa9407c809a3209f4f2 (patch)
tree179b3ea8c1d53d2a009240a5856e5985f54f642d /.config/zsh
parent02dbebfe4a1b734f1aa7402813ae450da7b2201d (diff)
xdg: vim
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zprofile1
-rw-r--r--.config/zsh/.zshrc2
2 files changed, 2 insertions, 1 deletions
diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile
index 94b00d6..9ec11f6 100644
--- a/.config/zsh/.zprofile
+++ b/.config/zsh/.zprofile
@@ -24,6 +24,7 @@ export CM_SELECTIONS=clipboard
export CM_DIR=/tmp
export PF_INFO="ascii title os kernel uptime pkgs memory"
export QT_QPA_PLATFORMTHEME=qt5ct
+export VIMINIT='let $MYVIMRC = !has("nvim") ? "$XDG_CONFIG_HOME/vim/vimrc" : "$XDG_CONFIG_HOME/nvim/init.lua" | so $MYVIMRC'
export LESS_TERMCAP_mb=$'\E[1;31m'
export LESS_TERMCAP_md=$'\E[1;31m'
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index e43d2d9..4dd7d88 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -41,7 +41,7 @@ alias cs='config status'
alias clg="config log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
alias zshrc='vim $XDG_CONFIG_HOME/zsh/.zshrc'
-alias vimrc='vim ~/.vim/vimrc'
+alias vimrc='vim $XDG_CONFIG_HOME/vim/vimrc'
alias nvimrc='cd $XDG_CONFIG_HOME/nvim;nvim'
alias i3config='vim $XDG_CONFIG_HOME/i3/config'
alias startup='vim $XDG_CONFIG_HOME/i3/init'