mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[shell-common] Move macOS specific config
This commit is contained in:
@@ -1,17 +1,5 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
alias ls="ls -F --color=auto"
|
||||||
# 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
|
# Use code-insiders if installed
|
||||||
if [ -x "$(command -v code-insiders)" ]; then
|
if [ -x "$(command -v code-insiders)" ]; then
|
||||||
|
|||||||
@@ -42,13 +42,6 @@ if [ -f $HOME/.cargo/env ]; then
|
|||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
fi
|
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
|
# https://github.com/oz/tz
|
||||||
if [ -x "$(command -v tz)" ]; then
|
if [ -x "$(command -v tz)" ]; then
|
||||||
export TZ_LIST="Europe/Dublin,Portwest HQ;America/New_York,WDW;America/Los_Angeles,DLR;Europe/Paris,DLP"
|
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