forked from muhaaliss/mydotfiles
tm func renamed cl and some minor change
This commit is contained in:
parent
0ba84e5a92
commit
ef0e1885c6
1 changed files with 29 additions and 16 deletions
45
bash_aliases
45
bash_aliases
|
@ -1,28 +1,34 @@
|
|||
#DNF alias
|
||||
# DNF alias
|
||||
alias upd="sudo dnf update"
|
||||
alias ins="sudo dnf install"
|
||||
alias rmv="sudo dnf remove"
|
||||
alias ser="dnf search"
|
||||
|
||||
#History alias
|
||||
tm () {
|
||||
|
||||
|
||||
# History alias
|
||||
cl () {
|
||||
FILE=$HOME/.bash_history
|
||||
if [ -f "$FILE" ]; then
|
||||
rm $FILE
|
||||
clear
|
||||
history -cw
|
||||
else
|
||||
echo "Kayıtlı geçmiş yok."
|
||||
clear
|
||||
history -cw
|
||||
fi
|
||||
}
|
||||
|
||||
#emacs no gui
|
||||
alias emacs="emacs -nw $argv"
|
||||
|
||||
## get rid of command not found
|
||||
|
||||
# Emacs no gui
|
||||
alias emacs="emacs -nw $argv"
|
||||
alias e="emacs -nw $argv"
|
||||
|
||||
|
||||
|
||||
# Quick way to get out of current directory
|
||||
alias cd..='cd ..'
|
||||
|
||||
## a quick way to get out of current directory
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../../../"
|
||||
alias ....="cd ../../../../"
|
||||
|
@ -30,20 +36,27 @@ alias .....="cd ../../../../"
|
|||
alias .4="cd ../../../../"
|
||||
alias .5="cd ../../../../.."
|
||||
|
||||
## Colorize the grep command output for ease of use (good for log files)
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
# 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'
|
||||
|
||||
|
||||
# Copy progress bar
|
||||
alias cpv='rsync -ah --info=progress2'
|
||||
|
|
Loading…
Add table
Reference in a new issue