[Fish, Emacs, Bootstrap] Replace yay with paru
This commit is contained in:
parent
2ea6cd5ecf
commit
9062092b1d
@ -100,7 +100,7 @@ yaml-language-server-bin zeal
|
||||
printf "\n# Installing needed packages ##################################################\n\n"
|
||||
sudo pacman -Syu
|
||||
for pkg in $PACKAGES
|
||||
yay -S --needed $pkg
|
||||
paru -S --needed $pkg
|
||||
end
|
||||
|
||||
mkdir -p $HOME/.config/awesome
|
||||
|
@ -3859,9 +3859,9 @@ The Scheme configuration will be very short, I just need to tell Emacs the name
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: User_Configuration-Projectile-06e580f0
|
||||
:END:
|
||||
Projectile is an awesome utility which helps managing projects within Emacs. It will automatically detect version controlled directories, and will by default assume this is a project I can be working on. However, there are some directories that are version controlled that I do not want to see in my list of projects, namely all the cached AUR packages from my AUR helper, ~yay~. They are all stored in the same parent directory, so let’s ignore that. I will also make Emacs ignore all ~node_modules~ directories it could encounter. And for some reason, =~/.config/emacs= is always in my projects list (I now use XDG-compliant directories), so let’s also ignore that.
|
||||
Projectile is an awesome utility which helps managing projects within Emacs. It will automatically detect version controlled directories, and will by default assume this is a project I can be working on. However, there are some directories that are version controlled that I do not want to see in my list of projects, namely all the cached AUR packages from my AUR helper, ~paru~. They are all stored in the same parent directory, so let’s ignore that. I will also make Emacs ignore all ~node_modules~ directories it could encounter. And for some reason, =~/.config/emacs= is always in my projects list (I now use XDG-compliant directories), so let’s also ignore that.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq projectile-ignored-projects '("~/.cache/yay" "~/.config/emacs" "/tmp"))
|
||||
(setq projectile-ignored-projects '("~/.cache/paru" "~/.config/emacs" "/tmp"))
|
||||
(add-to-list 'projectile-globally-ignored-directories "node_modules")
|
||||
#+END_SRC
|
||||
|
||||
|
@ -268,15 +268,15 @@ I added some of these abbreviations due to how often I have to write the whole t
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: Abbreviations-System_management_(packages_and_services)-Package_management-efbcdf0f
|
||||
:END:
|
||||
The first command is =remove= which removes a package from my system, as well as its dependencies no longer needed. =p=. =pacman='s or =yay='s. This is why I simply type =purge=. And if I want to simply seach among the =pacman= repos, I can type =search=. Otherwise, if I want to include AUR results, I’ll use =yay=.
|
||||
The first command is =remove= which removes a package from my system, as well as its dependencies no longer needed. =p=. =pacman='s or =paru='s. This is why I simply type =purge=. And if I want to simply seach among the =pacman= repos, I can type =search=. Otherwise, if I want to include AUR results, I’ll use =paru=.
|
||||
|
||||
#+NAME: pm-abbr
|
||||
| abbreviation | command |
|
||||
|--------------+--------------------|
|
||||
| remove | sudo pacman -Rscnd |
|
||||
| p | sudo pacman |
|
||||
| purge | yay -Sc |
|
||||
| search | yay -Ss |
|
||||
| purge | paru -Sc |
|
||||
| search | paru -Ss |
|
||||
|
||||
#+BEGIN_SRC fish
|
||||
<<generate-abbr(table=pm-abbr)>>
|
||||
|
@ -54,7 +54,7 @@ Now, let’s grab the script. You can check it on [[https://github.com/matmoul/a
|
||||
sh archfi
|
||||
#+END_SRC
|
||||
|
||||
Then, follow the instructions and install Arch Linux. Take the opportunity to install as many packages as you need, mainly ~yay~ which I use as my package manager (it is just a wrapper for ~pacman~) and AUR helper, and ~pacman-contrib~ which will help us installing some packages later.
|
||||
Then, follow the instructions and install Arch Linux. Take the opportunity to install as many packages as you need, mainly ~paru~ which I use as my package manager (it is just a wrapper for ~pacman~) and AUR helper, and ~pacman-contrib~ which will help us installing some packages later.
|
||||
|
||||
Once your system is installed, reboot and remove your installation media from your computer.
|
||||
|
||||
@ -63,9 +63,19 @@ Once your system is installed, reboot and remove your installation media from yo
|
||||
:HEADER-ARGS:fish: :tangle ~/.config/yadm/bootstrap :shebang "#!/usr/bin/fish" :exports code :mkdirp yes
|
||||
:CUSTOM_ID: Execute_bootstrap-e37054ef
|
||||
:END:
|
||||
With the installation of Arch with ~archfi~, I will have [[https://github.com/Jguer/yay][yay]], an AUR helper, installed. This will allow me to have some basic packages installed in order to run the bootstrap described below. So, let’s install ~fish~ (our shell running the script), ~git~, and my dotfiles manager ~yadm~.
|
||||
The first thing I will do is add the [[https://github.com/archlinuxcn/repo][ArchLinuxCN]] repository so I can get access to ~paru~.
|
||||
#+BEGIN_SRC sh
|
||||
yay -Sy fish git yadm
|
||||
printf '[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch\n' | sudo tee -a /etc/pacman.conf
|
||||
#+END_SRC
|
||||
|
||||
I can now install ~fish~, ~git~, and ~paru~:
|
||||
#+BEGIN_SRC sh
|
||||
sudo pacman -S fish git paru
|
||||
#+END_SRC
|
||||
|
||||
And now that ~paru~ is available, we can install ~yadm~:
|
||||
#+BEGIN_SRC sh
|
||||
paru -S yadm
|
||||
#+END_SRC
|
||||
|
||||
~yadm~ comes with a very handy feature: its bootstrap script. It can be executed automatically once the dotfiles are cloned with yadm:
|
||||
@ -237,7 +247,7 @@ These are the minimum I would have in my own installation. You can edit it howev
|
||||
printf "\n# Installing needed packages ##################################################\n\n"
|
||||
sudo pacman -Syu
|
||||
for pkg in $PACKAGES
|
||||
yay -S --needed $pkg
|
||||
paru -S --needed $pkg
|
||||
end
|
||||
#+END_SRC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user