From ae2de27da71318cd77935e82254c30029b8c3ee5 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sun, 14 May 2023 09:59:25 +0300 Subject: [PATCH] refactor: move .bin+bin dirs --- .gitignore | 8 ++++---- .zshrc | 2 +- aliases.sh | 1 + install.sh | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 426136b6..7af980b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -man/ -bin/ -_local.sh .DS_Store -*.pyc +man/ .bin/ +bin/ *.swp +*.pyc +_local.sh diff --git a/.zshrc b/.zshrc index cd06ae37..c5b6e3ea 100644 --- a/.zshrc +++ b/.zshrc @@ -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 diff --git a/aliases.sh b/aliases.sh index 050c6a8f..b580a399 100755 --- a/aliases.sh +++ b/aliases.sh @@ -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" diff --git a/install.sh b/install.sh index 0be1ef55..fcba8e07 100755 --- a/install.sh +++ b/install.sh @@ -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