mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 10:12:28 +00:00
[shell-common] Update config
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# macOS aliases
|
# macOS aliases
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
alias ls="ls -FG"
|
alias ls="ls -FG"
|
||||||
alias flushdns="sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
|
alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
|
||||||
else
|
else
|
||||||
alias ls="ls -F --color=auto"
|
alias ls="ls -F --color=auto"
|
||||||
fi
|
fi
|
||||||
@@ -16,7 +16,11 @@ if [ -f "/etc/NIXOS" ]; then
|
|||||||
alias nixos-rebuild="cd ~/nixos-config && make rebuild"
|
alias nixos-rebuild="cd ~/nixos-config && make rebuild"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias t='(tmux has-session 2>/dev/null && tmux attach) || (tmux new-session)'
|
# Tmux
|
||||||
alias tma="tmux attach"
|
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 last="last | head"
|
||||||
alias dp="demoprompt"
|
alias dp="demoprompt"
|
||||||
|
|||||||
@@ -39,9 +39,7 @@ fi
|
|||||||
|
|
||||||
# macOS Specific envs
|
# macOS Specific envs
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
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
|
# Homebrew
|
||||||
|
export HOMEBREW_NO_ENV_HINTS=1
|
||||||
[ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv)
|
[ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv)
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user