mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 01:32:30 +00:00
[shell-common] Update config
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user