From 4d1b2abfc8da124054463b8cddf9882bccfdc92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 27 Feb 2023 07:06:05 +0100 Subject: [PATCH] Delete obsolete function, fix newline in pacmanupdate, remove obsolete comments --- aliasrc | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/aliasrc b/aliasrc index 315b2e1..7611b1a 100644 --- a/aliasrc +++ b/aliasrc @@ -1,7 +1,3 @@ -##pacman-update country -update=CZ - -# # # ex - archive extractor # # usage: ex ex () @@ -29,15 +25,14 @@ ex () pacmanupdate () { - echo "Enter your country (like 'US' or 'CZ')"; - read update; + echo -n "Enter the country code for the mirrorlist you want to use (default: CZ): " + read -t 10 update; + if [ -z "$update" ]; then + update=CZ; + fi sudo reflector -c $update -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist; } -export EDITOR=nano - -alias pacman-update='sudo reflector -c $country -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist' - alias ls='ls --color' alias ll='ls -l' # ls, the common ones I use a lot shortened for rapid fire usage @@ -88,24 +83,8 @@ alias mv='mv -i' alias wallpaper=/home/$USER/.local/bin/wallpaper -#alias vim='vim' -#alias vi='vim' -#gitpush() { -# git add . -# git commit -m "$*" -# git pull -# git push -#} -#gitupdate() { -# eval "$(ssh-agent -s)" -# ssh-add ~/.ssh/github -# ssh -T git@github.com -#} -#alias gp=gitpush -#alias gu=gitupdate - -alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg' -#alias firefox='GTK_USE_PORTAL=1 firefox' +# alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg' +# alias firefox='GTK_USE_PORTAL=1 firefox' alias cls="clear" alias sshc='ssh-connect'