Added git size command, extract now works with tar.xz. Vimperatorrc now auto-unmaps commands and <C-{b,w,d}> work
This commit is contained in:
parent
f76bb9c2af
commit
590f7546fe
1
bashrc
1
bashrc
@ -121,6 +121,7 @@ function tsh(){
|
|||||||
extract () {
|
extract () {
|
||||||
if [ -f $1 ] ; then
|
if [ -f $1 ] ; then
|
||||||
case $1 in
|
case $1 in
|
||||||
|
*.tar.xz) tar xvf $1 ;;
|
||||||
*.tar.bz2) tar xvjf $1 ;;
|
*.tar.bz2) tar xvjf $1 ;;
|
||||||
*.tar.gz) tar xvzf $1 ;;
|
*.tar.gz) tar xvzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
dump = cat-file -p
|
dump = cat-file -p
|
||||||
d = difftool
|
d = difftool
|
||||||
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
cbranch = !sh -c 'git commit -m \"$2\"&&git branch $1&&git reset --hard HEAD~1&&git co \"$1\"' -
|
||||||
|
size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i"
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = matching
|
||||||
[core]
|
[core]
|
||||||
|
32
vimperatorrc
32
vimperatorrc
@ -1,3 +1,28 @@
|
|||||||
|
nunmap j
|
||||||
|
nunmap k
|
||||||
|
unmap J
|
||||||
|
unmap K
|
||||||
|
unmap <C-j>
|
||||||
|
unmap <C-k>
|
||||||
|
unmap gH
|
||||||
|
unmap gt
|
||||||
|
unmap gT
|
||||||
|
unmap Y
|
||||||
|
unmap !!
|
||||||
|
unmap <C-o>
|
||||||
|
unmap <C-i>
|
||||||
|
unmap G
|
||||||
|
unmap gg
|
||||||
|
unmap /
|
||||||
|
unmap a
|
||||||
|
unmap A
|
||||||
|
iunmap <C-L>
|
||||||
|
iunmap <C-H>
|
||||||
|
iunmap <C-b>
|
||||||
|
iunmap <C-w>
|
||||||
|
vunmap L
|
||||||
|
vunmap H
|
||||||
|
|
||||||
nnoremap j 6j
|
nnoremap j 6j
|
||||||
nnoremap k 6k
|
nnoremap k 6k
|
||||||
noremap J gt
|
noremap J gt
|
||||||
@ -16,8 +41,11 @@ noremap gg mpgg<Esc>
|
|||||||
noremap / mp/
|
noremap / mp/
|
||||||
noremap a A
|
noremap a A
|
||||||
noremap A a
|
noremap A a
|
||||||
inoremap L $
|
inoremap <C-L> <End>
|
||||||
inoremap H ^
|
inoremap <C-H> <Home>
|
||||||
|
inoremap <C-b> <C-Left>
|
||||||
|
inoremap <C-w> <C-Right>
|
||||||
|
inoremap <C-d><C-d> <Home><S-End><BS>
|
||||||
vnoremap L $
|
vnoremap L $
|
||||||
vnoremap H ^
|
vnoremap H ^
|
||||||
set animations=true
|
set animations=true
|
||||||
|
Loading…
Reference in New Issue
Block a user