dotfiles: record work tree in git config
This commit is contained in:
parent
4762cc0bc3
commit
21acdcf4de
|
@ -45,7 +45,7 @@ alias ta="tmux attach -t tastytea || tmux new-session -s tastytea"
|
||||||
|
|
||||||
alias exifremove='exiftool -all='
|
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
|
if [[ "${HOST}" != "ventiloplattform" && -f ~/.ssh/noid_dotfiles ]]; then
|
||||||
_tmp_config_alias="GIT_SSH_COMMAND=\"ssh -i ~/.ssh/noid_dotfiles\" ${_tmp_config_alias}"
|
_tmp_config_alias="GIT_SSH_COMMAND=\"ssh -i ~/.ssh/noid_dotfiles\" ${_tmp_config_alias}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
||||||
|
|
||||||
local repo_address="https://schlomp.space/tastytea/dotfiles.git"
|
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
|
if [[ -f ~/.ssh/noid_dotfiles ]]; then
|
||||||
print -P "%F{12}Using dotfiles SSH-key%f"
|
print -P "%F{12}Using dotfiles SSH-key%f"
|
||||||
repo_address="git@schlomp.space:tastytea/dotfiles.git"
|
repo_address="git@schlomp.space:tastytea/dotfiles.git"
|
||||||
|
@ -17,6 +17,8 @@ alias config=${tmp_git_command}
|
||||||
|
|
||||||
git clone --bare ${repo_address} ${HOME}/.dotfiles
|
git clone --bare ${repo_address} ${HOME}/.dotfiles
|
||||||
config config --local status.showUntrackedFiles no
|
config config --local status.showUntrackedFiles no
|
||||||
|
config config --local core.worktree ${HOME}
|
||||||
|
config config core.bare false
|
||||||
|
|
||||||
print -P "%F{12}Run%f" \
|
print -P "%F{12}Run%f" \
|
||||||
"%F{13}rm ${0} &&" \
|
"%F{13}rm ${0} &&" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user