Compare commits

...

4 Commits

3 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -277,3 +277,4 @@ golang
.dlv
Cisco Packet Tracer 8.0.0
.local/bin/kubectl
.rustup

View File

@ -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
View File

@ -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