added alias to pull latest .bashrc from gitea, moved rankmirrors to its' own command, added orphan package cleanup to update function
This commit is contained in:
parent
94d9137901
commit
3d313fadf6
37
.bashrc
37
.bashrc
@ -359,11 +359,21 @@ rl() {
|
|||||||
echo "Successfully Reloaded .bashrc"
|
echo "Successfully Reloaded .bashrc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dlrl() {
|
||||||
|
echo "Downloading latest .bashrc from gitea"
|
||||||
|
cd ~/ && wget -q -O .bashrc https://git.zinchuk.xyz/yuriy/Linux-bashrc-Profile/raw/branch/main/.bashrc && chmod 744 .bashrc
|
||||||
|
|
||||||
|
. ~/.bashrc
|
||||||
|
echo "Loaded latest .bashrc"
|
||||||
|
}
|
||||||
|
|
||||||
parul(){
|
parul(){
|
||||||
pacman -Qqe > pkglist.txt
|
pacman -Qqe > pkglist.txt
|
||||||
subl pkglist.txt
|
subl pkglist.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings
|
paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings
|
||||||
paru -Syu --noconfirm # update packages, no confirmation
|
paru -Syu --noconfirm # update packages, no confirmation
|
||||||
@ -375,11 +385,9 @@ update() {
|
|||||||
echo "Clearing out Pacman Cache"
|
echo "Clearing out Pacman Cache"
|
||||||
echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache
|
echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache
|
||||||
( echo "y"; echo "y" ) | paru -Sccd
|
( echo "y"; echo "y" ) | paru -Sccd
|
||||||
|
# (d) removes all orphaned packages that are no longer needed on your system
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "updating arch mirrorlists"
|
|
||||||
eos-rankmirrors
|
|
||||||
|
|
||||||
echo "Updating Flatpak packages:"
|
echo "Updating Flatpak packages:"
|
||||||
flatpak update
|
flatpak update
|
||||||
|
|
||||||
@ -387,28 +395,18 @@ update() {
|
|||||||
# paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed && paru -Syu --noconfirm && { [[ $(hostname) == "EOS-SERVER" ]] && echo "Skipping Clearing Update Cache" || (echo "Clearing out Pacman Cache" && echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache && ( echo "y"; echo "y" ) | paru -Scc); } && echo "updating arch mirrorlists" && eos-rankmirrors
|
# paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed && paru -Syu --noconfirm && { [[ $(hostname) == "EOS-SERVER" ]] && echo "Skipping Clearing Update Cache" || (echo "Clearing out Pacman Cache" && echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache && ( echo "y"; echo "y" ) | paru -Scc); } && echo "updating arch mirrorlists" && eos-rankmirrors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
updatewr() {
|
updatewr() {
|
||||||
# Run the Update function
|
# Run the Update function
|
||||||
update
|
|
||||||
|
|
||||||
# Restart
|
# Restart
|
||||||
sudo reboot
|
sudo reboot
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh() {
|
rank() {
|
||||||
# Pull down new .bashrc profile
|
echo "re-ranking arch mirrorlists"
|
||||||
cd ~/ && wget -q -O .bashrc https://git.zinchuk.xyz/yuriy/Linux-bashrc-Profile/raw/branch/main/.bashrc && chmod 744 .bashrc
|
eos-rankmirrors
|
||||||
echo "New .bashrc downloaded. Please reload with rl"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Pull down the latest linux toolbox and execute it
|
|
||||||
ltt() {
|
|
||||||
cd ~/Downloads/ && wget -q -O Linux_Toolbox.sh https://git.zinchuk.xyz/yuriy/Linux-Setup-Script/raw/branch/main/Linux_Toolbox.sh && chmod +x Linux_Toolbox.sh && bash Linux_Toolbox.sh
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
rkeymapper(){
|
rkeymapper(){
|
||||||
sudo pkill keymapper
|
sudo pkill keymapper
|
||||||
sudo systemctl restart keymapperd & keymapper &
|
sudo systemctl restart keymapperd & keymapper &
|
||||||
@ -455,9 +453,14 @@ alias parurr='paru -Rs'
|
|||||||
alias parurl='sudo pacman -Syy'
|
alias parurl='sudo pacman -Syy'
|
||||||
alias ps='pacseek'
|
alias ps='pacseek'
|
||||||
|
|
||||||
|
# exa (ls Replacement)
|
||||||
|
alias ls="exa -l"
|
||||||
|
alias ll="exa -alh"
|
||||||
|
alias lst="exa --tree --level 2 --long"
|
||||||
|
|
||||||
# misc aliases
|
# misc aliases
|
||||||
alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing
|
alias ef='_open_files_for_editing' # 'ef' opens given file(s) for editing
|
||||||
alias clip='xclip -sel clip'
|
alias clip='xclip -sel clip' # output piped content to clipboard
|
||||||
alias snano='sudo nano'
|
alias snano='sudo nano'
|
||||||
alias pu='pdfunite'
|
alias pu='pdfunite'
|
||||||
alias tda='todo.sh add'
|
alias tda='todo.sh add'
|
||||||
|
Loading…
Reference in New Issue
Block a user