Compare commits
4 Commits
f3ec2e8859
...
f1bf681d0a
Author | SHA1 | Date | |
---|---|---|---|
f1bf681d0a | |||
94c138f014 | |||
4686767a90 | |||
7e06c4c886 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -277,3 +277,4 @@ golang
|
||||
.dlv
|
||||
Cisco Packet Tracer 8.0.0
|
||||
.local/bin/kubectl
|
||||
.rustup
|
||||
|
@ -51,6 +51,15 @@ function command_start() {
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function command_exists() {
|
||||
if which "$1" > /dev/null 2>&1; then
|
||||
timestamp "Command $1 has been found"
|
||||
else
|
||||
err "Command $1 has been NOT found"
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
function update_pip() {
|
||||
# Update the pip
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
@ -284,6 +293,14 @@ function install_kubernetes() {
|
||||
fi
|
||||
}
|
||||
|
||||
function install_rust() {
|
||||
if command_exists rustc; then
|
||||
rustup update
|
||||
else
|
||||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
|
||||
fi
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start update_pip
|
||||
command_start install_neovim_module_for_python
|
||||
@ -311,6 +328,7 @@ function main() {
|
||||
command_start install_speedtest
|
||||
command_start install_gh_cli
|
||||
command_start install_kubernetes
|
||||
command_start install_rust
|
||||
command_start update
|
||||
}
|
||||
|
||||
|
1
.zshrc
1
.zshrc
@ -79,6 +79,7 @@ export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=$HOME/node_modules/.bin:$PATH
|
||||
export GOPATH=$HOME/golang
|
||||
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
|
||||
|
||||
# History
|
||||
|
Loading…
Reference in New Issue
Block a user