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"
|
||||
}
|
||||
|
||||
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(){
|
||||
pacman -Qqe > pkglist.txt
|
||||
subl pkglist.txt
|
||||
}
|
||||
|
||||
|
||||
|
||||
update() {
|
||||
paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings
|
||||
paru -Syu --noconfirm # update packages, no confirmation
|
||||
@ -375,11 +385,9 @@ update() {
|
||||
echo "Clearing out Pacman Cache"
|
||||
echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache
|
||||
( echo "y"; echo "y" ) | paru -Sccd
|
||||
# (d) removes all orphaned packages that are no longer needed on your system
|
||||
fi
|
||||
|
||||
echo "updating arch mirrorlists"
|
||||
eos-rankmirrors
|
||||
|
||||
echo "Updating Flatpak packages:"
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
updatewr() {
|
||||
# Run the Update function
|
||||
update
|
||||
|
||||
# Restart
|
||||
sudo reboot
|
||||
}
|
||||
|
||||
refresh() {
|
||||
# Pull down new .bashrc profile
|
||||
cd ~/ && wget -q -O .bashrc https://git.zinchuk.xyz/yuriy/Linux-bashrc-Profile/raw/branch/main/.bashrc && chmod 744 .bashrc
|
||||
echo "New .bashrc downloaded. Please reload with rl"
|
||||
rank() {
|
||||
echo "re-ranking arch mirrorlists"
|
||||
eos-rankmirrors
|
||||
}
|
||||
|
||||
|
||||
# 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(){
|
||||
sudo pkill keymapper
|
||||
sudo systemctl restart keymapperd & keymapper &
|
||||
@ -455,9 +453,14 @@ alias parurr='paru -Rs'
|
||||
alias parurl='sudo pacman -Syy'
|
||||
alias ps='pacseek'
|
||||
|
||||
# exa (ls Replacement)
|
||||
alias ls="exa -l"
|
||||
alias ll="exa -alh"
|
||||
alias lst="exa --tree --level 2 --long"
|
||||
|
||||
# misc aliases
|
||||
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 pu='pdfunite'
|
||||
alias tda='todo.sh add'
|
||||
|
Loading…
Reference in New Issue
Block a user