[shell-common] Update config

This commit is contained in:
2025-03-15 00:30:09 +00:00
parent b8e1eea457
commit 8f5829f5a7
2 changed files with 8 additions and 6 deletions

View File

@@ -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"

View File

@@ -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