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'