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

Compare commits

..

3 commits

Author SHA1 Message Date
51578dbabb add mist and logseq-bin 2022-10-27 10:39:01 +09:00
d5bb526d84 add logseq-sync task 2022-10-27 10:39:01 +09:00
2fae9e358a use include gitconfig 2022-10-27 10:39:01 +09:00
11 changed files with 30 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg] https://proget.makedeb.org makedeb jammy

View file

@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr jammy

View file

@ -41,3 +41,5 @@ function install_source_han_mono_fonts() {
install_gsettings settings.ini / install_gsettings settings.ini /
install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/" install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/"
install_source_han_mono_fonts install_source_han_mono_fonts
mist update \
&& mist install logseq-bin

View file

@ -4,6 +4,7 @@ code
deja-dup deja-dup
easytag easytag
google-chrome-stable google-chrome-stable
mist
mozc-utils-gui mozc-utils-gui
slack-desktop slack-desktop
) )

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

@ -9,4 +9,11 @@ function install_pkg_packages() {
pkg install -y "${packages[@]}" pkg install -y "${packages[@]}"
} }
function install_termux_task() {
mkdir -p ~/.shortcuts/tasks
install -v "$1" ~/.shortcuts/tasks/
}
install_pkg_packages install_pkg_packages
install_termux_task tasks/logseq-sync
termux-setup-storage

8
termux/tasks/logseq-sync Executable file
View file

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