From ef0e1885c6955e03a86961354514a212170c923f Mon Sep 17 00:00:00 2001 From: Muha Aliss Date: Tue, 19 Sep 2023 18:56:58 +0300 Subject: [PATCH] tm func renamed cl and some minor change --- bash_aliases | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/bash_aliases b/bash_aliases index bcdd12b..8def0db 100644 --- a/bash_aliases +++ b/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' \ No newline at end of file + + +# Copy progress bar +alias cpv='rsync -ah --info=progress2'