mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 19:08:16 +00:00
[shell-common] Move macOS specific config
This commit is contained in:
@@ -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
|
||||
alias ls="ls -F --color=auto"
|
||||
|
||||
# Use code-insiders if installed
|
||||
if [ -x "$(command -v code-insiders)" ]; then
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user