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
|
.dlv
|
||||||
Cisco Packet Tracer 8.0.0
|
Cisco Packet Tracer 8.0.0
|
||||||
.local/bin/kubectl
|
.local/bin/kubectl
|
||||||
|
.rustup
|
||||||
|
@ -51,6 +51,15 @@ function command_start() {
|
|||||||
timestamp "Command $* has been ended."
|
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() {
|
function update_pip() {
|
||||||
# Update the pip
|
# Update the pip
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
@ -284,6 +293,14 @@ function install_kubernetes() {
|
|||||||
fi
|
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() {
|
function main() {
|
||||||
command_start update_pip
|
command_start update_pip
|
||||||
command_start install_neovim_module_for_python
|
command_start install_neovim_module_for_python
|
||||||
@ -311,6 +328,7 @@ function main() {
|
|||||||
command_start install_speedtest
|
command_start install_speedtest
|
||||||
command_start install_gh_cli
|
command_start install_gh_cli
|
||||||
command_start install_kubernetes
|
command_start install_kubernetes
|
||||||
|
command_start install_rust
|
||||||
command_start update
|
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 PATH=$HOME/node_modules/.bin:$PATH
|
||||||
export GOPATH=$HOME/golang
|
export GOPATH=$HOME/golang
|
||||||
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
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
|
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
Loading…
Reference in New Issue
Block a user