forked from muhaaliss/mydotfiles
Quickly edited first file
This commit is contained in:
commit
5bc648540c
1 changed files with 49 additions and 0 deletions
49
bash_aliases
Normal file
49
bash_aliases
Normal file
|
@ -0,0 +1,49 @@
|
|||
#DNF alias
|
||||
alias upd="sudo dnf update"
|
||||
alias ins="sudo dnf install"
|
||||
alias rmv="sudo dnf remove"
|
||||
alias ser="dnf search"
|
||||
|
||||
#History alias
|
||||
tm () {
|
||||
FILE=$HOME/.bash_history
|
||||
if [ -f "$FILE" ]; then
|
||||
rm $FILE
|
||||
clear
|
||||
history -cw
|
||||
else
|
||||
echo "Kayıtlı geçmiş yok."
|
||||
fi
|
||||
}
|
||||
|
||||
#emacs no gui
|
||||
alias emacs="emacs -nw $argv"
|
||||
|
||||
## get rid of command not found
|
||||
alias cd..='cd ..'
|
||||
|
||||
## a quick way to get out of current directory
|
||||
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"
|
||||
|
||||
#History alias
|
||||
alias h="history"
|
||||
|
||||
# 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'
|
Loading…
Add table
Reference in a new issue