From caa51cb79234228ecf7d97e01691f1dfee715a2e Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:04 +0200 Subject: [PATCH] update dotfiles --- command.list | 4 ++-- gpackage.list | 1 + lib/lib.sh | 4 +++- package.list | 1 + sync.sh | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/command.list b/command.list index a67257b..308817f 100644 --- a/command.list +++ b/command.list @@ -1,5 +1,5 @@ ^. ./sync.conf && $PM_COMMAND $PM_UPGRADE ^[ -d /tmp/yay ] && rm -rf /tmp/yay - git clone https://aur.archlinux.org/yay /tmp/yay -cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM \ No newline at end of file +cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended diff --git a/gpackage.list b/gpackage.list index 7997ddc..db10bfa 100644 --- a/gpackage.list +++ b/gpackage.list @@ -1 +1,2 @@ alacritty +sway diff --git a/lib/lib.sh b/lib/lib.sh index b703116..1798188 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -22,4 +22,6 @@ run() { is_graphical() { command -v $PREF_TERM && return 0 || return 1 -} \ No newline at end of file +} + +command -v $SYS_SUDO || $SYS_SUDO="" \ No newline at end of file diff --git a/package.list b/package.list index 6eee86b..bbecb9e 100644 --- a/package.list +++ b/package.list @@ -1,2 +1,3 @@ +curl vim zsh diff --git a/sync.sh b/sync.sh index cff0c17..69ed6ae 100755 --- a/sync.sh +++ b/sync.sh @@ -59,5 +59,5 @@ main() { } echo "# exec: start." -[ bool ${TIME_TRACK:-no} ] && time main "$@" || main "$@" +bool ${TIME_TRACK:-no} && time main "$@" || main "$@" echo "# exec: done."