From b582b021dd15d3bc26e29778ea3bec7cfa778383 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sun, 22 May 2022 13:28:37 +0300 Subject: [PATCH] add bin dir + add to PATH --- .gitignore | 1 + exports.sh | 6 ++++-- home.sh | 9 +++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e2eae046..bfc4453b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ man/ +bin/ _local.sh .DS_Store diff --git a/exports.sh b/exports.sh index 42ad9267..c4c267be 100755 --- a/exports.sh +++ b/exports.sh @@ -10,7 +10,8 @@ export MANPATH="$HOME/.dotfiles/man:$MANPATH" export LDFLAGS="-L/opt/homebrew/opt/flex/lib" export CPPFLAGS="-I/opt/homebrew/opt/flex/include" export ANDROID_HOME="$HOME/Library/Android/sdk" -export GO_BIN="$HOME/go/bin" +export GOBIN="$HOME/go/bin" +export DOTBIN="$DOTFILES/bin" # Ruby User Install (for CocoaPods) export GEM_HOME="$HOME/.gem" @@ -29,5 +30,6 @@ export PATH="/opt/homebrew/opt/ruby/bin:$PATH" export PATH="/opt/homebrew/opt/flex/bin:$PATH" export PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH" export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH" -export PATH="$GO_BIN:$PATH" +export PATH="$GOBIN:$PATH" +export PATH="$DOTBIN:$PATH" export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH" diff --git a/home.sh b/home.sh index 44e930d6..7f1bc091 100644 --- a/home.sh +++ b/home.sh @@ -41,6 +41,8 @@ __home_do_install() { rm -f $man_out_dir/$man_file done + # OhMyZsh Plugins + zsh_autosuggestions_path=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions zsh_syntax_highlighting_path=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting @@ -60,6 +62,13 @@ __home_do_install() { git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $zsh_syntax_highlighting_path fi + # gi_gen + echo_cyan "Downloading gi_gen..." + gi_ver=0.3.3 + mkdir bin + curl -L https://github.com/chenasraf/gi_gen/releases/download/v$gi_ver/gi_gen-v$gi_ver-macos-arm -o bin/gi_gen + chmod +x bin/gi_gen + echo_cyan "Done" __home_revert_dir }