config
This commit is contained in:
parent
553cf81d6c
commit
c41d70bd6e
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ funcsave cfg
|
|||
|
||||
cfg add ~/.config/kitty
|
||||
cfg commit -m "add kitty config"
|
||||
cfg remote add $REMOTE
|
||||
cfg push
|
||||
|
||||
|
||||
|
|
@ -18,7 +19,7 @@ cfg push
|
|||
alias cfg='/usr/bin/git --git-dir=$HOME/.cfgstore/ --work-tree=$HOME'
|
||||
funcsave cfg
|
||||
git clone --bare git@github.com:fotonmoton/.dotfiles.git $HOME/.cfgstore
|
||||
echo ".cfgstore" >> .gitignore
|
||||
echo .cfgstore >> .gitignore
|
||||
cfg config --local status.showUntrackedFiles no
|
||||
cfg checkout
|
||||
|
||||
|
|
@ -26,5 +27,5 @@ cfg checkout
|
|||
# Conflict resolution
|
||||
|
||||
mkdir -p .config-backup && \
|
||||
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
|
||||
cfg checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
|
||||
xargs -I{} mv {} .config-backup/{}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue