Compare commits
8 commits
5ed546f559
...
2def5be4f9
Author | SHA1 | Date | |
---|---|---|---|
Manuel Thalmann | 2def5be4f9 | ||
Manuel Thalmann | f374c55a5e | ||
Manuel Thalmann | 7b8071311b | ||
Manuel Thalmann | 4a7f502209 | ||
Manuel Thalmann | 9dfcd2ae6c | ||
Manuel Thalmann | cf004bb962 | ||
Manuel Thalmann | 6960db47dc | ||
Manuel Thalmann | 50d9eb52a9 |
|
@ -16,6 +16,6 @@ begin
|
|||
end
|
||||
|
||||
function pacinst -d "Install pacman-package non-interactively"
|
||||
sudo runPacman --noconfirm $argv
|
||||
runPacman --noconfirm $argv
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ begin
|
|||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst \
|
||||
aliae-bin
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ begin
|
|||
source "$dir/../../Scripts/software.fish"
|
||||
source "$dir/../../../Common/Software/brave/main.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst brave-bin (
|
||||
# brave-beta-bin
|
||||
# brave-nightly-bin
|
||||
|
|
|
@ -4,7 +4,7 @@ begin
|
|||
source "$dir/../../Scripts/software.fish"
|
||||
source "$dir/../../../Common/Software/git/main.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst \
|
||||
git \
|
||||
git-lfs \
|
||||
|
|
|
@ -3,7 +3,7 @@ begin
|
|||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst grub-theme-minegrub-git
|
||||
fish "$dir/../../../Common/Software/minegrub-theme/main.fish" configure
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ begin
|
|||
|
||||
function installSW -V dir
|
||||
yayinst nodejs-n
|
||||
sudo fish "$dir/../../../Common/Software/n/main.fish" configure
|
||||
sudo --preserve-env --set-home fish "$dir/../../../Common/Software/n/main.fish" configure
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
|
|
|
@ -7,10 +7,12 @@ begin
|
|||
yayinst \
|
||||
openssh \
|
||||
libfido2
|
||||
|
||||
source (status filename) configure
|
||||
end
|
||||
|
||||
function configureSW
|
||||
systemctl --global enable --now ssh-agent
|
||||
sudo systemctl --global enable ssh-agent
|
||||
|
||||
and begin
|
||||
printf %s\n \
|
||||
|
|
|
@ -3,7 +3,7 @@ begin
|
|||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst pyenv
|
||||
fish "$dir/../../../Common/Software/pyenv/main.fish" configure
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@ begin
|
|||
source "$dir/../../Scripts/software.fish"
|
||||
source "$dir/../../../Common/Software/vim/main.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst (
|
||||
# Necessary for accessing clipboard in terminal: https://wiki.archlinux.org/title/Vim
|
||||
) gvim \
|
||||
|
|
|
@ -3,7 +3,7 @@ begin
|
|||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
function installSW -V dir
|
||||
yayinst \
|
||||
zoxide
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ source "$dir/../Scripts/hooks.fish"
|
|||
if [ (id -u) -eq 0 ]
|
||||
set -l name (getConfig valhalla.setupUser.name)
|
||||
set -l sudoConfig "/etc/sudoers.d/PortValhalla"
|
||||
rm ~/.bash_profile
|
||||
|
||||
runHook createUser || \
|
||||
begin
|
||||
|
|
|
@ -14,7 +14,7 @@ then
|
|||
UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \
|
||||
EXTENSION_DIR="${EXTENSION_DIR}" \
|
||||
EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}" \
|
||||
bash "$BASH_SOURCE" "$USER";
|
||||
bash --login "$BASH_SOURCE" "$USER";
|
||||
else
|
||||
keyFile="$UNPACKED_EXTENSION.pem";
|
||||
extensionFile="$UNPACKED_EXTENSION.crx";
|
||||
|
|
|
@ -11,7 +11,7 @@ begin
|
|||
source "$dir/../bash/profile.fish"
|
||||
source "$dir/../fish/profile.fish"
|
||||
set -l file /etc/aliae/aliae.yml
|
||||
echo "export ALIAE_CONFIG=$(string escape "$file")" | sudo tee /etc/profile.d/aliae.sh
|
||||
echo "export ALIAE_CONFIG=$(string escape "$file")" | sudo tee /etc/profile.d/aliae.sh > /dev/null
|
||||
sudo install -Dm644 "$dir/aliae.yml" "$file"
|
||||
|
||||
begin
|
||||
|
|
|
@ -17,12 +17,22 @@ begin
|
|||
if type -q "$bins[$i]"
|
||||
set bin "$bins[$i]"
|
||||
set extensionRoot "$extensionRoots[$i]"
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
BROWSER_BIN="$bin" \
|
||||
EXTENSION_POLICY_DIR="$braveExtensions" \
|
||||
EXTENSION_POLICY_DIR="$extensionRoot" \
|
||||
bash "$dir/../Chromium/ytmdl.sh"
|
||||
|
||||
for i in (seq (count $bins))
|
||||
if [ "$extensionRoots[$i]" != "$extensionRoot" ]
|
||||
if [ -d "$extensionRoots[$i]" ]
|
||||
sudo rm -rf "$extensionRoots[$i]"
|
||||
sudo ln -s "$extensionRoot" "$extensionRoots[$i]"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
|
|
|
@ -8,7 +8,7 @@ begin
|
|||
configureSW
|
||||
end
|
||||
|
||||
function configureSW
|
||||
function configureSW -V dir
|
||||
source "$dir/../bash/profile.fish"
|
||||
source "$dir/../fish/profile.fish"
|
||||
|
||||
|
@ -20,7 +20,7 @@ begin
|
|||
end | installBashProfile "pyenv" > /dev/null
|
||||
|
||||
if type -q fish
|
||||
addFishProfile "pyenv" "pyenv" "pyenv init - | source"
|
||||
installFishProfile "pyenv" "pyenv" "pyenv init - | source"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -35,7 +35,10 @@ begin
|
|||
sudo -Eu "$name" dbus-launch --exit-with-session startplasma-wayland &> /dev/null
|
||||
rm "$entryPoint"
|
||||
rm ~"$name"/.config/plasma-welcomerc
|
||||
else if [ -n "$name" ] && [ "$name" != "$USER" ]
|
||||
sudo -Eu "$name" CONFIG_MODULE="$CONFIG_MODULE" fish "$(status filename)" userConfig
|
||||
else
|
||||
systemctl --user enable rclone.service
|
||||
echo "Please complete the setup of your rclone configurations!"
|
||||
|
||||
for config in (echo "$configs" | jq '.[]' --raw-output0 | string split0)
|
||||
|
|
|
@ -4,14 +4,14 @@ begin
|
|||
source "$dir/../../Scripts/software.fish"
|
||||
source "$dir/../../../Common/Software/aliae/main.fish"
|
||||
|
||||
function configureSW
|
||||
function userConfig -a name
|
||||
set -l bins codium codium-insiders code code-insiders
|
||||
set -l extensions zokugun.{sync-settings,vsix-manager}
|
||||
|
||||
for bin in $bins
|
||||
if type -q "$bin"
|
||||
for extension in $extensions
|
||||
"$bin" --install-extension "$extension"
|
||||
sudo -u "$name" "$bin" --install-extension "$extension"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue