-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
executable file
·45 lines (42 loc) · 1.05 KB
/
.zshenv
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
#!/bin/zsh
if [[ $TERM = xterm-kitty ]]
then
alias icat="kitty +kitten icat"
alias ssh="kitty +kitten ssh"
fi
export CMAKE_GENERATOR=Ninja
export CMAKE_EXPORT_COMPILE_COMMANDS=On
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export HOMEBREW_CASK_OPTS="--no-quarantine"
up() {
sudo --validate
if (($+commands[python3])); then
python3 -m pip install --upgrade --user pip setuptools wheel
fi
if (($+commands["pip-upgrade"])); then
# pip install pip-upgrade-tool
pip-upgrade --novenv -y
fi
if (($+commands[pipx])); then
pipx upgrade-all
fi
if (($+commands[brew])); then
brew update && brew upgrade --greedy && brew autoremove && brew cleanup --prune=1
fi
if (($+commands[deno])); then
deno upgrade
fi
if (($+commands[rosdep])); then
rosdep update
fi
if (($+commands[softwareupdate])); then
softwareupdate --all --install --force
fi
if (($+commands[apt])) && [[ "$OSTYPE" != "darwin"* ]]; then
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove
fi
if (($+commands[snap])); then
sudo snap refresh -ry
fi
}
. "$HOME/.cargo/env"