diff --git a/private_dot_config/zsh/env b/private_dot_config/zsh/env index 1e20de9..ce4c4da 100644 --- a/private_dot_config/zsh/env +++ b/private_dot_config/zsh/env @@ -25,12 +25,13 @@ export PROJECTS="$HOME/Documents/Projects" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # Folders added to $PATH: -export PATH=$PROJECTS/bin:$PATH -export PATH=$HOME/home/linux/.local/bin:$PATH -export PATH=$HOME/.local/bin:$PATH +export PATH="$PROJECTS/bin:$PATH" +export PATH="$HOME/home/linux/.local/bin:$PATH" +export PATH="$HOME/.local/bin:$PATH" export PATH="$PNPM_HOME:$PATH" -export PATH=$GOPATH/bin:$PATH +export PATH="$GOPATH/bin:$PATH" export PATH="$BUN_INSTALL/bin:$PATH" +export PATH="$HOME/.nimble/bin:$PATH" #export PATH=$HOME/home/linux/.cargo/bin:$PATH diff --git a/private_dot_config/zsh/executable_dot_zshrc b/private_dot_config/zsh/executable_dot_zshrc index 32d35bb..37c5e4e 100644 --- a/private_dot_config/zsh/executable_dot_zshrc +++ b/private_dot_config/zsh/executable_dot_zshrc @@ -38,7 +38,7 @@ ZSH_THEME="agnoster" plugins=( # git # zsh-autosuggestions -archlinux +# archlinux emoji zsh-syntax-highlighting ) @@ -59,5 +59,8 @@ eval "$(zoxide init zsh --cmd cd)" # pnpm export PNPM_HOME="/home/linux/.local/share/pnpm" -export PATH="$PNPM_HOME:$PATH" -# pnpm end \ No newline at end of file +case ":$PATH:" in + *":$PNPM_HOME:"*) ;; + *) export PATH="$PNPM_HOME:$PATH" ;; +esac +# pnpm end diff --git a/private_dot_config/zsh/func b/private_dot_config/zsh/func index 157a1ce..86e8273 100644 --- a/private_dot_config/zsh/func +++ b/private_dot_config/zsh/func @@ -44,7 +44,5 @@ extract() { fi } -share() { - curl --progress-bar --upload-file "$1" https://share.arrayinamatrix.xyz/ | tee /dev/null; echo -} +share(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer \n ... | transfer ">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://share.arrayinamatrix.xyz/$file_name"|tee /dev/null;fi;}