Add btm config to rsync-local-config
This commit is contained in:
parent
0057f8813a
commit
86287332e1
|
@ -1,5 +1,5 @@
|
|||
HOST=$1
|
||||
for TARGET in bat git zellij starship.toml "ipython/profile_default/ipython_config.json"; do
|
||||
for TARGET in bat bottom git zellij starship.toml "ipython/profile_default/ipython_config.json"; do
|
||||
SOURCE="$HOME/.config/$TARGET"
|
||||
echo "--- $SOURCE ---"
|
||||
TMP_TARGET=/tmp/rsync-local-config
|
||||
|
@ -12,10 +12,10 @@ for TARGET in bat git zellij starship.toml "ipython/profile_default/ipython_conf
|
|||
TMP_SOURCE=$TMP_SOURCE/
|
||||
NIX_REPLACE="fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};"
|
||||
fi
|
||||
rsync -avzL --exclude=".git*" $SOURCE $TMP_TARGET
|
||||
rsync -avzL --exclude=".git*" "$SOURCE" $TMP_TARGET
|
||||
chmod u+rw -R $TMP_SOURCE
|
||||
sh -c "$NIX_REPLACE"
|
||||
rsync -avzL --delete --exclude=".git*" $TMP_SOURCE $HOST:.config/$TARGET
|
||||
rsync -avzL --delete --exclude=".git*" $TMP_SOURCE "$HOST:.config/$TARGET"
|
||||
rm -rf $TMP_SOURCE
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue