From 68955cea7c81345fc31f05cece3b3b12582b8997 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Fri, 7 Jul 2023 18:51:29 -0500 Subject: [PATCH] I missed you Arch Linux --- vim/.vimrc | 1 + zsh/.zshrc | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 6a6c562..680f7c4 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -44,6 +44,7 @@ autocmd FileType markdown,text setl tw=80 wm=2 autocmd BufWritePre * :%s/\s\+$//e " TODO: Make this configurable to handle multiple OSes +" Arch Linux: set rtp+=~/.fzf " Thought this was Debian: set rtp+=/usr/local/opt/fzf " This is Debian: source /usr/share/doc/fzf/examples/fzf.vim " This works for Debian too: diff --git a/zsh/.zshrc b/zsh/.zshrc index 1a0ad23..ce94ad4 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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-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 # 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" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -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 # Automatically use Node.js version specified in .nvmrc