fixed ctrl-a beginning of line with tmux and disabled annoying mouse support. added some bash aliases, updated toprc
This commit is contained in:
20
bash/.bashrc
20
bash/.bashrc
@@ -21,13 +21,14 @@ export LESS='-C -M -j 3 -R -# 2'
|
||||
### User specific aliases and functions
|
||||
# before you remove, you can unalias with: \<command>
|
||||
alias l.='ls -lh --time-style=long-iso --color' 2>/dev/null
|
||||
alias l='ls -lh --color --time-style=long'
|
||||
alias ll='ls -lAh --color --time-style=long'
|
||||
#alias l='ls -lh --color --time-style=long'
|
||||
alias ll='ls -lh --color --time-style=long'
|
||||
alias la='ls -lAh --color --time-style=long'
|
||||
alias ld='l -d */'
|
||||
alias lt='ls -lht'
|
||||
alias ltr='ls -lhtr'
|
||||
alias p='ping'
|
||||
alias ip='ip -br a'
|
||||
#alias ip='ip -br a'
|
||||
#alias s='sudo $(history -p !!)'
|
||||
alias s='sudo'
|
||||
alias df='sudo df -hT -x tmpfs -x devtmpfs'
|
||||
@@ -35,15 +36,24 @@ alias rsync='rsync --progress'
|
||||
# allows alias expansion after sudo, eg: sudo l
|
||||
# bash man page, "last char of alias value is space or tab..."
|
||||
alias sudo='sudo '
|
||||
alias lg=lg_grep
|
||||
# finding packages providing files
|
||||
alias rp=rpm_who
|
||||
alias dpp="sudo dnf provides \*/$1"
|
||||
|
||||
rpm_who() {
|
||||
echo -e "[ This only works for binaries by using /usr/bin/which ]\n"
|
||||
full_path=$(which $1)
|
||||
rpm -q --whatprovides $full_path
|
||||
}
|
||||
|
||||
#bind 'set completion-ignore-case on'
|
||||
set bell-style none
|
||||
#set bell-style none
|
||||
|
||||
#ls and grep function
|
||||
lg_grep() {
|
||||
ls -alh | grep -i $1
|
||||
}
|
||||
alias lg=lg_grep
|
||||
|
||||
## function and alias for short find
|
||||
short_find() {
|
||||
|
||||
Reference in New Issue
Block a user