I missed you Arch Linux

This commit is contained in:
Josh Sherman 2023-07-07 18:51:29 -05:00
parent dce619ff59
commit 68955cea7c
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 14 additions and 0 deletions

View file

@ -44,6 +44,7 @@ autocmd FileType markdown,text setl tw=80 wm=2
autocmd BufWritePre * :%s/\s\+$//e autocmd BufWritePre * :%s/\s\+$//e
" TODO: Make this configurable to handle multiple OSes " TODO: Make this configurable to handle multiple OSes
" Arch Linux: set rtp+=~/.fzf
" Thought this was Debian: set rtp+=/usr/local/opt/fzf " Thought this was Debian: set rtp+=/usr/local/opt/fzf
" This is Debian: source /usr/share/doc/fzf/examples/fzf.vim " This is Debian: source /usr/share/doc/fzf/examples/fzf.vim
" This works for Debian too: " This works for Debian too:

View file

@ -26,6 +26,13 @@ elif command -v apt &> /dev/null; then
source /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh source /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
elif command -v pacman &> /dev/null; then
# Arch
source /usr/share/fzf/completion.zsh
source /usr/share/fzf/key-bindings.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi fi
# If you receive "highlighters directory not found" error message, │ # If you receive "highlighters directory not found" error message, │
@ -93,6 +100,12 @@ elif command -v apt &> /dev/null; then
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
elif command -v pacman &> /dev/null; then
# Arch
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
source /usr/share/nvm/nvm.sh
source /usr/share/nvm/bash_completion
source /usr/share/nvm/install-nvm-exec
fi fi
# Automatically use Node.js version specified in .nvmrc # Automatically use Node.js version specified in .nvmrc