config-files/.bash_aliases

26 lines
524 B
Bash
Raw Normal View History

2023-07-10 12:53:16 -04:00
# Aliases
# alias alias_name="command_to_run"
# Long format list
alias ll="ls -la"
# Print my public IP
alias myip="curl ipinfo.io/ip"
# Current weather
weather () {
curl wttr.in/"$1"?0
}
# I forget the neofetch command
alias sysinfo="neofetch"
# I always forget how to clear DNS
alias flushdns="sudo systemd-resolve --flush-caches"
# Quick upgrade flatpak
alias fp-upgrade="flatpak upgrade && flatpak uninstall --unused"
# Quick upgrade all
alias all-upgrade="fp-upgrade; sudo apt update && sudo apt full-upgrade"