refactor: move .bin+bin dirs

This commit is contained in:
Chen Asraf
2023-05-14 09:59:25 +03:00
parent 6a86b7b14e
commit ae2de27da7
4 changed files with 8 additions and 7 deletions

8
.gitignore vendored
View File

@@ -1,7 +1,7 @@
man/
bin/
_local.sh
.DS_Store
*.pyc
man/
.bin/
bin/
*.swp
*.pyc
_local.sh

2
.zshrc
View File

@@ -1,5 +1,5 @@
export DOTFILES="$HOME/.dotfiles"
export DOTBIN="$DOTFILES/bin"
export DOTBIN="$DOTFILES/.config/bin"
# echo 'Loading '$DOTFILES/functions.sh
source $DOTFILES/functions.sh

View File

@@ -93,6 +93,7 @@ alias tlw="tmux list-windows"
alias trl="tmux source-file ~/.config/.tmux.conf"
alias trn="tmux rename-session -t"
alias trm="tmux kill-session -t"
alias tks="tmux kill-server"
# tmux - workspaces
alias tn-general="tn-custom \$HOME/Dev -s general"

View File

@@ -24,14 +24,14 @@ cd $cwd
# gi_gen
echo_cyan "Downloading gi_gen latest version..."
gi_ver=$(curl -s "https://api.github.com/repos/chenasraf/gi_gen/tags" | jq -r '.[0].name')
ver_file="$DOTFILES/.bin/.gi_gen_version"
ver_file="$HOME/.config/.bin/.gi_gen_version"
mkdir -p $(dirname $ver_file)
touch $ver_file
existing_ver=$(cat $ver_file)
if [[ "$existing_ver" != "$gi_ver" ]]; then
echo_cyan "Downloading gi_gen $gi_ver..."
mkdir -p $DOTBIN
mkdir -p $DOTFILES/.bin
mkdir -p $HOME/.config/.bin
if is_mac; then
curl -L https://github.com/chenasraf/gi_gen/releases/download/$gi_ver/gi_gen-$gi_ver-macos-arm -o $DOTBIN/gi_gen
else