config/shell: little alias fixes
This commit is contained in:
parent
dab83792db
commit
dcf649102f
|
@ -6,7 +6,7 @@ alias dragon='dragon-drag-and-drop'
|
||||||
alias pac='noglob sudo pacman'
|
alias pac='noglob sudo pacman'
|
||||||
alias pacs='pac -Syu --needed'
|
alias pacs='pac -Syu --needed'
|
||||||
alias pacr='pac -R'
|
alias pacr='pac -R'
|
||||||
alias yays='noglob yay -S --needed'
|
alias yays='noglob yay -S --needed --ignore ferdi'
|
||||||
alias yayr='noglob yay -R'
|
alias yayr='noglob yay -R'
|
||||||
|
|
||||||
yzf() {
|
yzf() {
|
||||||
|
|
|
@ -174,18 +174,18 @@ alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'
|
||||||
alias sc='sudo systemctl'
|
alias sc='sudo systemctl'
|
||||||
alias sce='sudo systemctl enable --now'
|
alias sce='sudo systemctl enable --now'
|
||||||
scs() {
|
scs() {
|
||||||
sudo systemctl status "*$1*"
|
systemctl --user status "$1" "*$1*"
|
||||||
systemctl --user status "*$1*"
|
sudo systemctl status "$1" "*$1*"
|
||||||
}
|
}
|
||||||
alias scu='systemctl --user'
|
alias scu='systemctl --user'
|
||||||
alias scue='systemctl --user enable --now'
|
alias scue='systemctl --user enable --now'
|
||||||
|
|
||||||
scb() {
|
scb() {
|
||||||
sudo systemctl stop -T "$1"
|
|
||||||
systemctl --user stop -T "$1"
|
systemctl --user stop -T "$1"
|
||||||
|
sudo systemctl stop -T "$1"
|
||||||
read
|
read
|
||||||
sudo systemctl start -T "$1"
|
|
||||||
systemctl --user start -T "$1"
|
systemctl --user start -T "$1"
|
||||||
|
sudo systemctl start -T "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e'
|
alias jcl='sudo SYSTEMD_LESS=FRKi journalctl --boot --no-hostname -e'
|
||||||
|
@ -404,7 +404,7 @@ clean() {
|
||||||
|
|
||||||
highlight "o to optimize extensively"
|
highlight "o to optimize extensively"
|
||||||
if [[ $1 =~ "o" ]]; then
|
if [[ $1 =~ "o" ]]; then
|
||||||
which yay &>/dev/null && yay -Sc
|
which yay &>/dev/null && yay -Sc --noconfirm
|
||||||
nix-collect-garbage -d
|
nix-collect-garbage -d
|
||||||
nix-store --optimize
|
nix-store --optimize
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue