[shell-common] Move macOS specific config

This commit is contained in:
2026-01-04 00:08:23 +00:00
parent d4d69b9831
commit c5352aa0eb
2 changed files with 1 additions and 20 deletions

View File

@@ -1,17 +1,5 @@
# shellcheck shell=bash
# macOS aliases
if [[ $(uname) == "Darwin" ]]; then
alias ls="ls -FG"
alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
# Use Tailscale binary if installed via app
if [ -d "/Applications/Tailscale.app" ]; then
alias tailscale="/Applications/Tailscale.app/Contents/MacOS/Tailscale"
fi
else
alias ls="ls -F --color=auto"
fi
# Use code-insiders if installed
if [ -x "$(command -v code-insiders)" ]; then

View File

@@ -42,13 +42,6 @@ if [ -f $HOME/.cargo/env ]; then
source $HOME/.cargo/env
fi
# macOS Specific envs
if [[ $(uname) == "Darwin" ]]; then
# Homebrew
export HOMEBREW_NO_ENV_HINTS=1
[ -d /opt/homebrew ] && eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# https://github.com/oz/tz
if [ -x "$(command -v tz)" ]; then
export TZ_LIST="Europe/Dublin,Portwest HQ;America/New_York,WDW;America/Los_Angeles,DLR;Europe/Paris,DLP"