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() {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
top's Config File (Linux processes with windows)
|
||||
Id:i, Mode_altscr=0, Mode_irixps=1, Delay_time=1.0, Curwin=0
|
||||
Def fieldscur=¥¨³´»½ÀÄ·¹Å&')*+,-./012568<>º?ABCFGHIJKLMÎOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=949564, sortindx=18, maxtasks=0, graph_cpus=0, graph_mems=0
|
||||
summclr=1, msgsclr=1, headclr=3, taskclr=1
|
||||
Job fieldscur=¥¦¹·º(³´Ä»½@<§Å)*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=193844, sortindx=0, maxtasks=0, graph_cpus=0, graph_mems=0
|
||||
Id:j, Mode_altscr=0, Mode_irixps=1, Delay_time=1.0, Curwin=0
|
||||
Def fieldscur=¥¨³´»½ÀÄ·º¹Å&')*+,-./012568<>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz
|
||||
winflags=687548, sortindx=18, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=1, combine_cpus=0
|
||||
summclr=4, msgsclr=9, headclr=15, taskclr=14
|
||||
Job fieldscur=¥¦¹·º(³´Ä»½@<§Å)*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz
|
||||
winflags=195892, sortindx=0, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0
|
||||
summclr=6, msgsclr=6, headclr=7, taskclr=6
|
||||
Mem fieldscur=¥º»<½¾¿ÀÁMBNÃD34·Å&'()*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=193844, sortindx=21, maxtasks=0, graph_cpus=0, graph_mems=0
|
||||
Mem fieldscur=¥º»<½¾¿ÀÁMBNÃD34·Å&'()*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz
|
||||
winflags=195892, sortindx=21, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0
|
||||
summclr=5, msgsclr=5, headclr=4, taskclr=5
|
||||
Usr fieldscur=¥¦§¨ª°¹·ºÄÅ)+,-./1234568;<=>?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=193844, sortindx=3, maxtasks=0, graph_cpus=0, graph_mems=0
|
||||
Usr fieldscur=¥¦§¨ª°¹·ºÄÅ)+,-./1234568;<=>?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz
|
||||
winflags=195892, sortindx=3, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0
|
||||
summclr=3, msgsclr=3, headclr=2, taskclr=3
|
||||
Fixed_widest=0, Summ_mscale=2, Task_mscale=1, Zero_suppress=1
|
||||
|
||||
|
||||
@@ -7,11 +7,12 @@ set -s escape-time 0
|
||||
#history limit
|
||||
set-option -g history-limit 5000
|
||||
|
||||
#change C-b to Ca
|
||||
#change default mapping
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
#bind-key C-t send-prefix
|
||||
bind-key -n C-s send-prefix
|
||||
# allows "ctrl-a, a" to go to beginning of line like default bash ctrl-a
|
||||
bind-key a send-prefix
|
||||
|
||||
# split panes using | and -
|
||||
bind | split-window -h -c '#{pane_current_path}'
|
||||
@@ -37,6 +38,13 @@ bind-key -n C-PageDown copy-mode
|
||||
bind-key -T copy-mode C-PageUp send-keys -X page-up
|
||||
bind-key -T copy-mode C-PageDown send-keys -X page-down
|
||||
|
||||
# switch in/out nested tmux with shift+up/down
|
||||
bind -n S-up \
|
||||
set -qg status-bg color7 \; \
|
||||
set -qg prefix C-b
|
||||
bind -n S-down \
|
||||
set -qg status-bg color0 \; \
|
||||
set -qg prefix C-a
|
||||
|
||||
#join window
|
||||
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
|
||||
|
||||
@@ -20,7 +20,7 @@ set smartcase
|
||||
set clipboard^=unnamed,unnamedplus
|
||||
|
||||
" mouse stuff
|
||||
set mouse=a
|
||||
" set mouse=a
|
||||
|
||||
" hide showmode because its in statusline
|
||||
set noshowmode
|
||||
|
||||
@@ -3,6 +3,10 @@ URxvt.font: xft:Terminus:size=14:antialias=true
|
||||
URxvt.boldFont: xft:Terminus:bold:size=14:antialias=true
|
||||
URxvt.cursorUnderline: 1
|
||||
|
||||
! 2023-01-07 - trying to remap copy/paste
|
||||
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
|
||||
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
|
||||
|
||||
!URxvt*inheritPixmap: true
|
||||
!URxvt*transparent: true
|
||||
!URxvt*shading: 6
|
||||
|
||||
Reference in New Issue
Block a user