Switch back to brew
This commit is contained in:
@@ -8,7 +8,7 @@ alias ll='ls -lah'
|
||||
alias l='ls -CF'
|
||||
|
||||
# System Utils
|
||||
alias rebuild='darwin-rebuild switch --flake ~/dotfiles/nix#macbook'
|
||||
alias brewup='cl && brew update && brew upgrade && brew upgrade --cask && brew cleanup -s && brew doctor --verbose | grep -A 1 --color=never "Homebrew Version" && brew autoremove'
|
||||
alias cl='clear'
|
||||
alias wthr='curl wttr.in/san_luis_obispo'
|
||||
alias nf='cl && fastfetch && shownetinfo && batt'
|
||||
@@ -18,4 +18,4 @@ alias fps='if [[ $(launchctl getenv MTL_HUD_ENABLED) -eq 1 ]]; then
|
||||
launchctl unsetenv MTL_HUD_ENABLED && echo "Metal FPS disabled"
|
||||
else
|
||||
launchctl setenv MTL_HUD_ENABLED 1 && echo "Metal FPS enabled"
|
||||
fi'
|
||||
fi'
|
||||
|
||||
20
zsh/zshrc
20
zsh/zshrc
@@ -57,20 +57,12 @@ else
|
||||
alias ls='ls -G'
|
||||
fi
|
||||
|
||||
shownetinfo
|
||||
if [ "$OSTYPE" = "Linux" ]; then
|
||||
echo ""
|
||||
elif [ "$OSTYPE" = "Darwin" ]; then
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
# set up iterm integration
|
||||
source ~/.iterm2_shell_integration.zsh
|
||||
# set up auto suggestions and syntax highlighting
|
||||
source /nix/store/*zsh-autosuggestions*/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /nix/store/*zsh-syntax-highlighting*/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
ssh-add -K ~/.ssh/id_rsa 2>/dev/null
|
||||
LAPTOP=$(system_profiler SPHardwareDataType | grep "Model Name" | grep "Book")
|
||||
if [ "$LAPTOP" != "" ]; then
|
||||
batt
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
# source homebrew
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
# plugins
|
||||
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user