improvements
This commit is contained in:
parent
905217ab20
commit
3a082eba32
5 changed files with 18 additions and 9 deletions
|
@ -9,7 +9,7 @@ set -x SSH_AUTH_SOCK $XDG_RUNTIME_DIR/ssh-agent.socket
|
||||||
for f in (ls $HOME/.ssh/*.pub);
|
for f in (ls $HOME/.ssh/*.pub);
|
||||||
set -l priv (string replace '.pub' '' $f);
|
set -l priv (string replace '.pub' '' $f);
|
||||||
if not contains $priv (ssh-add -l | awk '{ print $3 }')
|
if not contains $priv (ssh-add -l | awk '{ print $3 }')
|
||||||
ssh-add $priv
|
ssh-add $priv >/dev/null 2>&1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Defined in - @ line 1
|
# Defined in /tmp/fish.LdXqvm/ll.fish @ line 2
|
||||||
function ll --description 'alias ll=exa -l'
|
function ll --wraps=exa --description 'alias ll=exa -l'
|
||||||
exa -l $argv;
|
exa -lF --git $argv;
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Defined in /tmp/fish.CDDaTn/ydl.fish @ line 2
|
# Defined in /tmp/fish.5wSYb7/ydl.fish @ line 2
|
||||||
function ydl
|
function ydl
|
||||||
set -l addargs "--extract-audio --keep-video"
|
set -l addargs --extract-audio --keep-video
|
||||||
set -l url $argv[1]
|
set -l url $argv[1]
|
||||||
|
|
||||||
echo "args = $argv[1] -- $argv[2]"
|
echo "args = $argv[1] -- $argv[2]"
|
||||||
|
@ -19,5 +19,6 @@ function ydl
|
||||||
|
|
||||||
echo youtube-dl $addargs --add-metadata "$url"
|
echo youtube-dl $addargs --add-metadata "$url"
|
||||||
youtube-dl $addargs --add-metadata "$url"
|
youtube-dl $addargs --add-metadata "$url"
|
||||||
rm -f "*.f???.*"
|
#rm -f "*.f???.*"
|
||||||
|
fd ".*\.f...\..*" -X rm
|
||||||
end
|
end
|
||||||
|
|
|
@ -28,3 +28,6 @@
|
||||||
insteadOf = https://code.waarp.fr
|
insteadOf = https://code.waarp.fr
|
||||||
[core]
|
[core]
|
||||||
pager = delta --dark --theme 'Solarized (dark)'
|
pager = delta --dark --theme 'Solarized (dark)'
|
||||||
|
[merge]
|
||||||
|
tool = vimdiff
|
||||||
|
guitool = meld
|
||||||
|
|
|
@ -209,6 +209,8 @@ nmap <silent> <space>w<space>w :call mkdir(strftime("diary/%Y/%m"), "p", 0755) \
|
||||||
|
|
||||||
" Removes trailing whitespaces
|
" Removes trailing whitespaces
|
||||||
nnoremap <leader>s :keeppattern %s/\s\+$//<CR>
|
nnoremap <leader>s :keeppattern %s/\s\+$//<CR>
|
||||||
|
|
||||||
|
" move lines around
|
||||||
nnoremap <A-Down> :m .+1<CR>==
|
nnoremap <A-Down> :m .+1<CR>==
|
||||||
nnoremap <A-Up> :m .-2<CR>==
|
nnoremap <A-Up> :m .-2<CR>==
|
||||||
inoremap <A-Down> <Esc>:m .+1<CR>==gi
|
inoremap <A-Down> <Esc>:m .+1<CR>==gi
|
||||||
|
@ -221,7 +223,7 @@ nmap <space>cf :cfirst<CR>
|
||||||
nmap <space>cn :cnext<CR>
|
nmap <space>cn :cnext<CR>
|
||||||
nmap <space>cp :cprevious<CR>
|
nmap <space>cp :cprevious<CR>
|
||||||
nmap <space>co :copen<CR>
|
nmap <space>co :copen<CR>
|
||||||
nmap <space>cc :cclose<CR>
|
nmap <space>cc :cexpr [] \| cclose<CR>
|
||||||
nmap <space>lf :lfirst<CR>
|
nmap <space>lf :lfirst<CR>
|
||||||
nmap <space>ln :lnext<CR>
|
nmap <space>ln :lnext<CR>
|
||||||
nmap <space>lp :lprevious<CR>
|
nmap <space>lp :lprevious<CR>
|
||||||
|
@ -306,4 +308,7 @@ if has("autocmd")
|
||||||
autocmd FileType go nmap <leader>m <Plug>(go-metalinter)
|
autocmd FileType go nmap <leader>m <Plug>(go-metalinter)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
nmap <space>w :w<CR>
|
nmap <space>w :cexpr [] \| cclose \| w<CR>
|
||||||
|
nmap <C-b> :b#<CR>
|
||||||
|
nmap <C-w>M <C-w>_<C-w><BAR>
|
||||||
|
nmap <C-w>m <C-w>=
|
||||||
|
|
Loading…
Add table
Reference in a new issue