mydotfiles/bash_aliases

64 lines
1.4 KiB
Bash
Raw Normal View History

# DNF
2023-11-15 12:57:11 +03:00
alias upd="sudo dnf update"
alias upg="sudo dnf update"
2023-11-15 12:57:11 +03:00
alias ins="sudo dnf install"
alias rem="sudo dnf remove"
alias sea="dnf search"
2023-11-15 12:57:11 +03:00
# APT
2024-03-23 20:51:38 +03:00
alias upd="sudo apt update"
alias upg="sudo apt upgrade"
alias fug="sudo apt full-upgrade"
2024-03-23 20:51:38 +03:00
alias ins="sudo apt install"
alias rem="sudo apt purge"
alias sea="apt search"
2023-11-15 12:57:11 +03:00
# Flatpak
2024-03-23 20:51:38 +03:00
alias fpu="flatpak update"
alias fpi="flatpak install"
alias fpr="flatpak uninstall"
2024-03-23 20:51:38 +03:00
alias fpl="flatpak list"
2023-11-15 12:57:11 +03:00
2024-03-28 00:20:56 +03:00
# History
2023-11-15 12:57:11 +03:00
cl () {
2024-03-28 00:20:56 +03:00
HISFIL=$HOME/.bash_history
if [ -f "$HISFIL" ]; then
rm $HISFIL
2023-11-15 12:57:11 +03:00
clear
history -cw
else
clear
history -cw
fi
}
2024-03-28 00:22:46 +03:00
# Emacs
alias e="emacs -nw"
2023-11-15 12:57:11 +03:00
# Quick way to get out of current directory
alias cd..='cd ..'
alias ..="cd .."
alias ...="cd ../../../"
alias ....="cd ../../../../"
alias .....="cd ../../../../"
alias .4="cd ../../../../"
alias .5="cd ../../../../.."
# Colorize the grep command output for ease of use (good for log files)
alias grep="grep --color=auto"
# Make mount command output pretty and human readable format
alias mount="mount |column -t"
# Stop after sending count ECHO_REQUEST packets
alias ping="ping -c 5"
# Displays the size of each item, and then sorts it by size, in a single column, with a notation to indicate the kind of file
alias lt='ls --human-readable --size -1 -S --classify'
# Copy progress bar
alias cpv='rsync -ah --info=progress2'
2024-03-23 20:51:38 +03:00
# Git clone alias
alias gitc="git clone"