Compare commits

...

4 Commits

Author SHA1 Message Date
y0rune f1bf681d0a Added into a PATH a bin for rust 2024-04-13 22:21:56 +02:00
y0rune 94c138f014 Added .rustup into a gitignore 2024-04-13 22:21:42 +02:00
y0rune 4686767a90 Added function for installing rust 2024-04-13 22:21:25 +02:00
y0rune 7e06c4c886 Added function command_exists into a Update-pkg 2024-04-13 22:19:47 +02:00
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -277,3 +277,4 @@ golang
.dlv
Cisco Packet Tracer 8.0.0
.local/bin/kubectl
.rustup
+18
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
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