1
0
Fork 0

dotfiles: record work tree in git config

This commit is contained in:
tastytea 2022-08-19 23:49:33 +02:00
parent 4762cc0bc3
commit 21acdcf4de
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,7 @@ alias ta="tmux attach -t tastytea || tmux new-session -s tastytea"
alias exifremove='exiftool -all='
local _tmp_config_alias='git --git-dir=${HOME}/.dotfiles/ --work-tree=${HOME}'
local _tmp_config_alias='git --git-dir=${HOME}/.dotfiles --work-tree=${HOME}'
if [[ "${HOST}" != "ventiloplattform" && -f ~/.ssh/noid_dotfiles ]]; then
_tmp_config_alias="GIT_SSH_COMMAND=\"ssh -i ~/.ssh/noid_dotfiles\" ${_tmp_config_alias}"
fi

View File

@ -4,7 +4,7 @@
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
local repo_address="https://schlomp.space/tastytea/dotfiles.git"
local tmp_git_command='git --git-dir=${HOME}/.dotfiles/ --work-tree=${HOME}'
local tmp_git_command='git --git-dir=${HOME}/.dotfiles --work-tree=${HOME}'
if [[ -f ~/.ssh/noid_dotfiles ]]; then
print -P "%F{12}Using dotfiles SSH-key%f"
repo_address="git@schlomp.space:tastytea/dotfiles.git"
@ -17,6 +17,8 @@ alias config=${tmp_git_command}
git clone --bare ${repo_address} ${HOME}/.dotfiles
config config --local status.showUntrackedFiles no
config config --local core.worktree ${HOME}
config config core.bare false
print -P "%F{12}Run%f" \
"%F{13}rm ${0} &&" \