diff --git a/system/completions/update.sh b/system/completions/update.sh index fbd86e2..bc09b6c 100755 --- a/system/completions/update.sh +++ b/system/completions/update.sh @@ -1,12 +1,12 @@ #!/usr/bin/env zsh gen() { - if is-executable $1;then - echo "$1 updated" - "$@" > "_$argv[1]" - else; - echo "skipping $1" - fi + if is-executable $1; then + echo "$1 updated" + "$@" >"_$argv[1]" + else + echo "skipping $1" + fi } echo "GENERATING COMPLETION SCRIPTS" diff --git a/system/env.sh b/system/env.sh index 2616187..0d84e40 100644 --- a/system/env.sh +++ b/system/env.sh @@ -79,7 +79,6 @@ export ZSH_DOTENV_DISALLOWED_LIST=$HOME/.cache/dotenv-disallowed.list export MAMBA_NO_BANNER=1 # shiv -if is-executable shiv;then - export SHIV_ROOT=$HOME/.local/share/shiv +if is-executable shiv; then + export SHIV_ROOT=$HOME/.local/share/shiv fi - diff --git a/system/function.sh b/system/function.sh index 70ed238..f5a9581 100644 --- a/system/function.sh +++ b/system/function.sh @@ -9,7 +9,6 @@ function cl() { ls -F --color=auto } - #delete and reclone remote repo reclone() { basename=${PWD##*/} @@ -73,5 +72,3 @@ py2nb2html() { echo "generating html file for $pyfile" jupytext --to notebook -o - $pyfile | jupyter nbconvert --execute --to html --stdin $@ } - - diff --git a/system/path.sh b/system/path.sh index fa66435..78c9440 100644 --- a/system/path.sh +++ b/system/path.sh @@ -1,10 +1,9 @@ # Start with system path # Retrieve it from getconf, otherwise it's just current $PATH prepend-path() { - [ -d $1 ] && PATH="$1:$PATH" + [ -d $1 ] && PATH="$1:$PATH" } - is-executable getconf && PATH=$($(command -v getconf) PATH) # Prepend new items to path (if directory exists)