Replaced pacinit alias with full script
This commit is contained in:
parent
48f789c5b4
commit
883305ca6b
2 changed files with 15 additions and 1 deletions
15
.bin/Scripts/pacinit
Executable file
15
.bin/Scripts/pacinit
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
## Wizard Kit: Update pacman settings to usage in live sessions
|
||||
|
||||
# Disable custom repo (used at build-time)
|
||||
sudo sed -i -r "s/^(\[custom\])/#\1/" /etc/pacman.conf
|
||||
sudo sed -i -r "s/^(SigLevel = Optional TrustAll)/#\1/" /etc/pacman.conf
|
||||
sudo sed -i -r "s/^(Server = )/#\1/" /etc/pacman.conf
|
||||
|
||||
# Disable signature checks
|
||||
sudo sed -i -r "s/^SigLevel.*/SigLevel = Never/" /etc/pacman.conf
|
||||
|
||||
# Refresh package databases
|
||||
sudo pacman -Sy
|
||||
|
||||
|
|
@ -16,7 +16,6 @@ alias ls='ls --color=auto'
|
|||
alias mkdir='mkdir -p'
|
||||
alias mount='sudo mount'
|
||||
alias mv='mv -nv'
|
||||
alias pacinit='sudo sed -i -r "s/^SigLevel.*/SigLevel = Never/" /etc/pacman.conf; sudo pacman -Sy'
|
||||
alias photorec-sort='sudo photorec-sort'
|
||||
alias photorec='sudo photorec'
|
||||
alias q1='clear && ls -1'
|
||||
|
|
|
|||
Loading…
Reference in a new issue