25 lines
524 B
Bash
25 lines
524 B
Bash
# 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"
|