updated domain from phundrak.fr to phundrak.com
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/fish
|
||||
# -*- mode: fish -*-
|
||||
|
||||
yadm decrypt
|
||||
|
||||
set keyboardconf \
|
||||
'Section "InputClass"
|
||||
Identifier "system-keyboard"
|
||||
@@ -49,7 +51,7 @@ mkdir -p $HOME/.cache/nano/backups
|
||||
printf "\n# Set fish as the default shell ###############################################\n\n"
|
||||
chsh -s /usr/bin/fish
|
||||
|
||||
if ! test which yay
|
||||
if ! test (which yay)
|
||||
printf "\n# Installing yay ##############################################################\n\n"
|
||||
cd
|
||||
mkdir -p fromGIT
|
||||
@@ -61,44 +63,6 @@ else
|
||||
printf "\n# yay already installed #######################################################\n\n"
|
||||
end
|
||||
|
||||
printf "\n# Installing Spacemacs ########################################################\n\n"
|
||||
rm -rf ~/.emacs.d
|
||||
|
||||
git clone --single-branch --branch develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
||||
|
||||
yadm checkout -- ~/.emacs.d/private/
|
||||
|
||||
if ! test (echo "phundrak" | sed -e "s/^.*$USER//I")
|
||||
|
||||
printf "\n# Update yadm’s remotes #######################################################\n\n"
|
||||
yadm remote set-url origin git@labs.phundrak.fr:phundrak/dotfiles.git
|
||||
yadm remote add github git@github.com:phundrak/dotfiles.git
|
||||
|
||||
printf "\n# Decrypt encrypted dotfiles ##################################################\n\n"
|
||||
yadm decrypt
|
||||
|
||||
end
|
||||
|
||||
printf '\n# Install envtpl ##############################################################\n\n'
|
||||
yay -Syu python-envtpl-git
|
||||
|
||||
printf "\n# Getting yadm susbmodules ####################################################\n\n"
|
||||
yadm submodule update --init --recursive
|
||||
|
||||
printf "\n# Generating alt files ########################################################\n\n"
|
||||
yadm alt
|
||||
|
||||
for f in (find ~/.etc -type f)
|
||||
set dest (echo $f | sed -n 's/^.*etc\(.*\)$/\/etc\1/p')
|
||||
sudo ln -s $f $dest
|
||||
end
|
||||
|
||||
read --prompt "echo 'Symlink .nanorc to root’s .nanorc? (Y/n): ' " -l nanoroot
|
||||
if test $nanoroot = 'y' || test $nanoroot = "Y" || test $nanoroot = ''
|
||||
printf "\n# Symlinking .nanorc to root’s .nanorc ########################################\n\n"
|
||||
sudo ln -s $HOME/.nanorc /root/.nanorc
|
||||
end
|
||||
|
||||
set PACKAGES \
|
||||
acpilight asar ascii aspell-en aspell-fr assimp awesome-terminal-fonts \
|
||||
base-devel bat biber bleachbit bluez-firmware bluez-utils bookworm boost bzip2 \
|
||||
@@ -129,11 +93,38 @@ ttf-liberation ttf-material-design-icons-git ttf-ms-fonts ttf-symbola \
|
||||
ttf-tibetan-machine ttf-twemoji-color ttf-unifont typescript unicode \
|
||||
unicode-emoji unrar usbutils valgrind vscode-css-languageserver-bin w3m wget \
|
||||
x11-ssh-askpass xclip xdg-user-dirs-gtk xorg-drivers xorg-apps xfsprogs \
|
||||
xorg-server xorg-xinit xss-lock xvkbd yapf \
|
||||
xorg-server xorg-xinit xss-lock xvkbd yapf
|
||||
|
||||
printf "\n# Installing needed packages ##################################################\n\n"
|
||||
yay -S --needed $PACKAGES
|
||||
|
||||
printf "\n# Installing Spacemacs ########################################################\n\n"
|
||||
rm -rf ~/.emacs.d
|
||||
|
||||
git clone --single-branch --branch develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
||||
|
||||
yadm checkout -- ~/.emacs.d/private/
|
||||
|
||||
if ! test (echo "phundrak" | sed -e "s/^.*$USER//I")
|
||||
|
||||
printf "\n# Update yadm’s remotes #######################################################\n\n"
|
||||
yadm remote set-url origin git@labs.phundrak.com:phundrak/dotfiles.git
|
||||
yadm remote add github git@github.com:phundrak/dotfiles.git
|
||||
|
||||
printf "\n# Decrypt encrypted dotfiles ##################################################\n\n"
|
||||
yadm decrypt
|
||||
|
||||
end
|
||||
|
||||
printf '\n# Install envtpl ##############################################################\n\n'
|
||||
yay -Syu python-envtpl-git
|
||||
|
||||
printf "\n# Getting yadm susbmodules ####################################################\n\n"
|
||||
yadm submodule update --init --recursive
|
||||
|
||||
printf "\n# Generating alt files ########################################################\n\n"
|
||||
yadm alt
|
||||
|
||||
printf "\n# Installing tryone’s compton fork ############################################\n\n"
|
||||
yay -S compton-tryone-git
|
||||
|
||||
@@ -159,6 +150,17 @@ sudo systemctl disable getty@tty2
|
||||
|
||||
sudo usermod -aG video $USER
|
||||
|
||||
for f in (find ~/.etc -type f)
|
||||
set dest (echo $f | sed -n 's/^.*etc\(.*\)$/\/etc\1/p')
|
||||
sudo ln -s $f $dest
|
||||
end
|
||||
|
||||
read --prompt "echo 'Symlink .nanorc to root’s .nanorc? (Y/n): ' " -l nanoroot
|
||||
if test $nanoroot = 'y' || test $nanoroot = "Y" || test $nanoroot = ''
|
||||
printf "\n# Symlinking .nanorc to root’s .nanorc ########################################\n\n"
|
||||
sudo ln -s $HOME/.nanorc /root/.nanorc
|
||||
end
|
||||
|
||||
printf "\n# Installing fisher ###########################################################\n\n"
|
||||
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
|
||||
|
||||
|
||||
Reference in New Issue
Block a user