diff --git a/init.vim b/init.vim index 86c11ac..29052a4 100644 --- a/init.vim +++ b/init.vim @@ -118,15 +118,15 @@ let g:WebDevIconsNerdTreeGitPluginForceVAlign = 1 " }}} " BACKUPS ###########################################################{{{ -set dir=$HOME/.vim/swp// -autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g') +set dir=$HOME/.nvim/swp// +autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.config/nvim/backups/" . substitute(escape(substitute(expand('%:p'), "/", "%", "g"), "%"), ' ', '\\ ', 'g') if exists('+undofile') set undofile set undolevels=1000 set undoreload=10000 if exists('+undodir') - set undodir=$HOME/.vim/undo + set undodir=$HOME/.config/nvim/undo endif endif " }}} diff --git a/zsh/bin/vim-recover b/zsh/bin/vim-recover index ba5c8b4..63fc3ac 100755 --- a/zsh/bin/vim-recover +++ b/zsh/bin/vim-recover @@ -6,11 +6,11 @@ if [ -f $1 ]; then return 1 fi -BACKUP_PATH=~/.vim/backups/`echo $PWD/$1 | tr '/' '%'` +backup_path=~/.config/nvim/backups/`echo $PWD/$1 | tr '/' '%'` -if [ ! -f "$BACKUP_PATH" ]; then +if [ ! -f "$backup_path" ]; then echo >&2 Backup not found... return 2 fi -cp $BACKUP_PATH $1 +cp $backup_path $1 diff --git a/zsh/path.zsh b/zsh/path.zsh index 3590ccd..f717f49 100644 --- a/zsh/path.zsh +++ b/zsh/path.zsh @@ -18,6 +18,12 @@ if [ -d $HOME/.cargo ]; then fi fi +# Wasmer path +if [ -d $HOME/.wasmer ]; then + export WASMER_DIR="$HOME/.wasmer" + [ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh" # This loads wasmer +fi + # Node path if [ -d $HOME/.npmbin ]; then export PATH=$HOME/.npmbin/bin:$PATH