1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-31 22:38:00 +00:00

Compare commits

..

No commits in common. "b8cf08e274b84947a95e0e1a292c441eb37fcceb" and "138e8c3c037502ec2790ccab629762b71ac6f581" have entirely different histories.

5 changed files with 13 additions and 5 deletions

View file

@ -6,5 +6,6 @@ if (($(id -u) == 0)); then
[[ -f /etc/debian_version ]] \ [[ -f /etc/debian_version ]] \
&& install_apt_packages && install_apt_packages
fi fi
install_gitconfig
install_dotfiles install_dotfiles
install_addons "$@" install_addons "$@"

View file

@ -13,6 +13,15 @@ function install_dotfiles() {
done done
} }
function install_gitconfig() {
if (($(id -u) == 0)); then
sudo --user="#${SUDO_UID:-0}" \
git config --global --add include.path "$(realpath gitconfig)"
else
git config --global --add include.path "$(realpath gitconfig)"
fi
}
function install_apt_packages() { function install_apt_packages() {
local packages local packages
local apt_sources_dir local apt_sources_dir

View file

@ -4,7 +4,6 @@ gh
git git
iproute2 iproute2
jq jq
make
mdbook mdbook
nodejs-lts nodejs-lts
openssh openssh

View file

@ -1,9 +1,8 @@
#!/bin/sh #!/bin/sh
set -e set -e
cd ~/logseq cd ~/storage/shared/logseq
rsync -a ~/storage/shared/logseq/journals/ journals/ git pull
rsync -a ~/storage/shared/logseq/pages/ pages/
git add --all git add --all
if git commit -m update; then if git commit -m update; then
rsync -a ./ ~/storage/shared/logseq/ git push
fi fi