From 9f669a5d35b314215cbcec94d6d8433c3155fc73 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Sun, 22 Mar 2026 13:24:09 +0000 Subject: Use quotes & HOME variable --- bash_profile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'bash_profile') diff --git a/bash_profile b/bash_profile index 72be8d5..53aad16 100644 --- a/bash_profile +++ b/bash_profile @@ -4,30 +4,30 @@ # # Load bashrc -[[ -f ~/.bashrc ]] && source ~/.bashrc +[[ -f "$HOME/.bashrc" ]] && source "$HOME/.bashrc" # Custom Scripts -scripts="~/repos/scripts" -[ -d "$scripts" ] && PATH=$PATH:$scripts +scripts="$HOME/repositories/scripts" +[[ -d "$scripts" ]] && PATH="$PATH:$scripts" -# Node/NPM: make global pkg installs use ~/.local -exists node && export NODE_PATH=~/.local/lib/node_modules:$NODE_PATH -exists npm && export npm_config_prefix=~/.local -export PATH=~/.local/bin:$PATH +# Node/NPM: make global pkg installs use $HOME/.local +exists node && export NODE_PATH="$HOME/.local/lib/node_modules:$NODE_PATH" +exists npm && export npm_config_prefix="$HOME/.local" +export PATH="$HOME/.local/bin:$PATH" # Editor if exists vim; then - export EDITOR=vim - export VISUAL=$EDITOR + export EDITOR="vim" + export VISUAL="$EDITOR" fi # History -export HISTFILE=~/.cache/bash_history +export HISTFILE="$HOME/.cache/bash_history" # Less export LESS="-R" -export LESSCHARSET=utf-8 -export LESSHISTFILE=~/.cache/less_history +export LESSCHARSET="utf-8" +export LESSHISTFILE="$HOME/.cache/less_history" export LESS_TERMCAP_mb=$'\e[01;33m' # begin blinking export LESS_TERMCAP_md=$'\e[01;33m' # begin bold export LESS_TERMCAP_me=$'\e[0m' # end all modes -- cgit