mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-31 14:27:59 +00:00
Compare commits
2 commits
138e8c3c03
...
b8cf08e274
Author | SHA1 | Date | |
---|---|---|---|
b8cf08e274 | |||
a30d9cc7fc |
5 changed files with 5 additions and 13 deletions
1
install
1
install
|
@ -6,6 +6,5 @@ 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 "$@"
|
||||||
|
|
9
mod.bash
9
mod.bash
|
@ -13,15 +13,6 @@ 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
|
||||||
|
|
|
@ -4,6 +4,7 @@ gh
|
||||||
git
|
git
|
||||||
iproute2
|
iproute2
|
||||||
jq
|
jq
|
||||||
|
make
|
||||||
mdbook
|
mdbook
|
||||||
nodejs-lts
|
nodejs-lts
|
||||||
openssh
|
openssh
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
cd ~/storage/shared/logseq
|
cd ~/logseq
|
||||||
git pull
|
rsync -a ~/storage/shared/logseq/journals/ journals/
|
||||||
|
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
|
||||||
git push
|
rsync -a ./ ~/storage/shared/logseq/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue