-
Notifications
You must be signed in to change notification settings - Fork 5
/
.zshrc.macos
50 lines (43 loc) · 1.41 KB
/
.zshrc.macos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Some handy functions to switch between internet setups I often use.
vpn_on() {
networksetup -setdnsservers Wi-Fi 10.6.0.2
scutil --nc start "PIVPN DNS"
}
vpn_off() {
scutil --nc stop "PIVPN DNS"
networksetup -setdnsservers Wi-Fi 208.67.222.222 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001
}
vpn_full() {
scutil --nc start "PIVPN"
}
eval "$(pyenv init -)"
# BEGIN_KITTY_SHELL_INTEGRATION
if test -e "/Applications/kitty.app/Contents/Resources/kitty/shell-integration/kitty.zsh"; then source "/Applications/kitty.app/Contents/Resources/kitty/shell-integration/kitty.zsh"; fi
# END_KITTY_SHELL_INTEGRATION
alias ls='lsd -F'
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
# Homebrew completion
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/hugo/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/hugo/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/hugo/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/hugo/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<