From feccec18adca49170baaf99adfc17e7478063cbf Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 7 Jul 2023 08:58:07 -0500 Subject: [PATCH] added check to make sure ruby is installed before adding to $PATH. --- neovim/.config/nvim/spell/en.utf-8.add | 5 +++++ zsh/.zshrc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/neovim/.config/nvim/spell/en.utf-8.add b/neovim/.config/nvim/spell/en.utf-8.add index 5792ebf..5767532 100644 --- a/neovim/.config/nvim/spell/en.utf-8.add +++ b/neovim/.config/nvim/spell/en.utf-8.add @@ -32,3 +32,8 @@ dotfiles ctrl sed NGINX +timezones +Proxmox +Gabe +Venberg +Github diff --git a/zsh/.zshrc b/zsh/.zshrc index deb5940..cb51d3f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -14,7 +14,7 @@ #set important shell variables #fancy way of testing if a command exists - (($+command[ruby])) && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin" + ruby --version &>/dev/null && export PATH="$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin/" #test that these nonstandard paths exist before adding to PATH. testPath="$HOME/.local/bin" [ -d "$testPath" ] && export PATH="$PATH:$testPath" @@ -34,6 +34,7 @@ #set ssh-agent to play nice with systemd. export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" export TIMEFMT="%J %*U user %*S system %P cpu %*E total" + export PIPENV_VENV_IN_PROJECT=true #prompt autoload -U promptinit