mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-03-13 03:24:06 +01:00
shell/*: run shellcheck on it
This commit is contained in:
parent
ff6d6ce2a3
commit
de2fa53348
3 changed files with 21 additions and 28 deletions
|
|
@ -1,21 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Append our default paths
|
||||
appendpath () {
|
||||
case ":$PATH:" in
|
||||
*:"$1":*)
|
||||
;;
|
||||
*)
|
||||
if [ -d "$1" ]; then
|
||||
export PATH="${PATH:+$PATH:}$1"
|
||||
fi
|
||||
esac
|
||||
set_path(){
|
||||
if [ -d "${1}" ]; then
|
||||
export PATH="${1}:${PATH}"
|
||||
fi
|
||||
}
|
||||
|
||||
appendpath ~/.local/bin
|
||||
appendpath ~/.bin
|
||||
set_path ~/.local/bin
|
||||
set_path ~/.bin
|
||||
|
||||
export GOPATH=$HOME/.go
|
||||
export GOBIN=$HOME/.gobin
|
||||
appendpath "$GOPATH"/bin
|
||||
appendpath "$GOBIN"
|
||||
export GOPATH="${HOME}/.go"
|
||||
export GOBIN="${HOME}/.gobin"
|
||||
set_path "${GOPATH}/bin"
|
||||
set_path "${GOBIN}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue