diff --git a/shell-common/.config/shell-common/aliases.sh b/shell-common/.config/shell-common/aliases.sh index e35d681..e5f952b 100644 --- a/shell-common/.config/shell-common/aliases.sh +++ b/shell-common/.config/shell-common/aliases.sh @@ -1,7 +1,7 @@ # macOS aliases if [[ $(uname) == "Darwin" ]]; then alias ls="ls -FG" - alias flushdns="sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder" + alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" else alias ls="ls -F --color=auto" fi @@ -16,7 +16,11 @@ if [ -f "/etc/NIXOS" ]; then alias nixos-rebuild="cd ~/nixos-config && make rebuild" fi -alias t='(tmux has-session 2>/dev/null && tmux attach) || (tmux new-session)' -alias tma="tmux attach" +# Tmux +if [ -x "$(command -v tmux)" ]; then + alias t='(tmux has-session 2>/dev/null && tmux attach) || (tmux new-session)' + alias tma="tmux attach" +fi + alias last="last | head" alias dp="demoprompt" diff --git a/shell-common/.config/shell-common/exports.sh b/shell-common/.config/shell-common/exports.sh index e8896c3..ed5e681 100644 --- a/shell-common/.config/shell-common/exports.sh +++ b/shell-common/.config/shell-common/exports.sh @@ -39,9 +39,7 @@ fi # macOS Specific envs if [[ $(uname) == "Darwin" ]]; then - # Python user bin folder - [ -d $HOME/Library/Python/3.9/bin ] && export PATH=$PATH:$HOME/Library/Python/3.9/bin - # Homebrew + export HOMEBREW_NO_ENV_HINTS=1 [ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv) fi