From e9cef7f41bdabe8ee58400ccab8cb6dfc267b1c1 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Mon, 6 Aug 2018 19:13:15 +1200 Subject: [PATCH] refactor(zsh): shellcheck doesn't like me --- zsh/.config/oh-my-zsh/custom/npm.zsh | 3 ++- zsh/.config/oh-my-zsh/custom/ruby.zsh | 3 ++- zsh/.config/oh-my-zsh/custom/tmux.zsh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zsh/.config/oh-my-zsh/custom/npm.zsh b/zsh/.config/oh-my-zsh/custom/npm.zsh index 4fb6e50..e7dddb1 100644 --- a/zsh/.config/oh-my-zsh/custom/npm.zsh +++ b/zsh/.config/oh-my-zsh/custom/npm.zsh @@ -11,4 +11,5 @@ PATH="$NPM_CONFIG_PREFIX/bin:$PATH" # Unset manpath so we can inherit from /etc/manpath via the `manpath` command unset MANPATH # delete if you already modified MANPATH elsewhere in your config -export MANPATH="$NPM_CONFIG_PREFIX/share/man:$(manpath)" +MANPATH="$NPM_CONFIG_PREFIX/share/man:$(manpath)" +export MANPATH diff --git a/zsh/.config/oh-my-zsh/custom/ruby.zsh b/zsh/.config/oh-my-zsh/custom/ruby.zsh index 2b4dac2..795cf48 100644 --- a/zsh/.config/oh-my-zsh/custom/ruby.zsh +++ b/zsh/.config/oh-my-zsh/custom/ruby.zsh @@ -1,2 +1,3 @@ # Add rubygem binary directory to $PATH -export PATH="$PATH:$(ruby -e "puts Gem.user_dir")/bin" +PATH="$PATH:$(ruby -e "puts Gem.user_dir")/bin" +export PATH diff --git a/zsh/.config/oh-my-zsh/custom/tmux.zsh b/zsh/.config/oh-my-zsh/custom/tmux.zsh index 9c09ef1..61b3f01 100644 --- a/zsh/.config/oh-my-zsh/custom/tmux.zsh +++ b/zsh/.config/oh-my-zsh/custom/tmux.zsh @@ -4,5 +4,5 @@ alias tmux='tmux -f ~/.config/tmux/tmux.conf' # Connect to remote tmux session via SSH ssh-tmux(){ - ssh -t $@ "tmux attach || tmux new"; + ssh -t "$@" "tmux attach || tmux new"; }