mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
refactor: move .bin+bin dirs
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,7 +1,7 @@
|
||||
man/
|
||||
bin/
|
||||
_local.sh
|
||||
.DS_Store
|
||||
*.pyc
|
||||
man/
|
||||
.bin/
|
||||
bin/
|
||||
*.swp
|
||||
*.pyc
|
||||
_local.sh
|
||||
|
||||
2
.zshrc
2
.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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user