mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-12 23:42:56 +00:00
more misc shortcuts
This commit is contained in:
parent
482daf329e
commit
5d04fad4c9
@ -78,6 +78,7 @@ function abbrs --description 'All abbreviations'
|
|||||||
'-keyout server.key -out server.csr'
|
'-keyout server.key -out server.csr'
|
||||||
abbr -a fingerprint 'ssh-keyscan myhost.com | ssh-keygen -lf -'
|
abbr -a fingerprint 'ssh-keyscan myhost.com | ssh-keygen -lf -'
|
||||||
abbr -a publickey 'ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub'
|
abbr -a publickey 'ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub'
|
||||||
|
abbr -a forloop 'for i in (seq 1 100)'
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
abbr -a dc '$DOTS/bin/docker_cleanup'
|
abbr -a dc '$DOTS/bin/docker_cleanup'
|
||||||
|
@ -4,7 +4,8 @@ function meeting --description "Describe a meeting" -a "name"
|
|||||||
set time (date +"%I:%M%p" | tr '[:upper:]' '[:lower:]')
|
set time (date +"%I:%M%p" | tr '[:upper:]' '[:lower:]')
|
||||||
set meeting_name (echo $name | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
|
set meeting_name (echo $name | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
|
||||||
set meeting_note $today_date-$meeting_name
|
set meeting_note $today_date-$meeting_name
|
||||||
printf "[$TODAY_NOTE](journal/$TODAY_NOTE.md) | #meeting\n\n# $name\n\n---\n\n" > $NOTES_PATH/$meeting_note.md
|
set meeting_file meetings/$meeting_note.md
|
||||||
printf "\n\n---\n\n$time - [$name](../$meeting_note.md)\n\n---\n\n" >> $TODAY_NOTE_FILE
|
printf "[$TODAY_NOTE](../journal/$TODAY_NOTE.md) | #meeting\n\n# $name\n\n---\n\n" > $NOTES_PATH/$meeting_file
|
||||||
open "obsidian://open?vault=notes&file=$meeting_note"
|
printf "\n\n---\n\n$time - [$name](../$meeting_file)\n\n---\n\n" >> $TODAY_NOTE_FILE
|
||||||
|
vim $NOTES_PATH/$meeting_file
|
||||||
end
|
end
|
||||||
|
11
fish.configlink/functions/tickers.fish
Normal file
11
fish.configlink/functions/tickers.fish
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/local/bin/fish
|
||||||
|
|
||||||
|
function tickers --description "Stock and money tickers"
|
||||||
|
abbr -a tk 'tickrs -s'
|
||||||
|
abbr -a vt 'tickrs -s vt'
|
||||||
|
abbr -a vti 'tickrs -s vti'
|
||||||
|
abbr -a vxus 'tickrs -s vxus'
|
||||||
|
abbr -a btc 'rates btc usd'
|
||||||
|
abbr -a ada 'rates ada usd'
|
||||||
|
abbr -a eth 'rates eth usd'
|
||||||
|
end
|
@ -14,8 +14,9 @@ map <Space> <Leader>
|
|||||||
"This unsets the `last search pattern` register by hitting return
|
"This unsets the `last search pattern` register by hitting return
|
||||||
nnoremap <silent> <CR> :noh<CR><CR>
|
nnoremap <silent> <CR> :noh<CR><CR>
|
||||||
|
|
||||||
" Replace all
|
" Find and replace
|
||||||
nnoremap <Leader>S :%s//g<Left><Left>
|
nnoremap <Leader>S :%s/
|
||||||
|
vnoremap <leader>S :s/
|
||||||
|
|
||||||
" Shuffle lines around
|
" Shuffle lines around
|
||||||
nnoremap <A-j> :m .+1<CR>==
|
nnoremap <A-j> :m .+1<CR>==
|
||||||
@ -105,7 +106,7 @@ nnoremap <Leader>rr :Refresh<cr>
|
|||||||
nnoremap <Leader>rp :Refresh<cr> :PlugInstall<cr>
|
nnoremap <Leader>rp :Refresh<cr> :PlugInstall<cr>
|
||||||
|
|
||||||
" Open file tree
|
" Open file tree
|
||||||
noremap <silent> <Leader>ft :Fern . -drawer -width=35 -toggle<CR><C-w>=
|
nnoremap <silent> <Leader>ft :Fern . -drawer -width=35 -toggle<CR><C-w>=
|
||||||
|
|
||||||
" Tabularize
|
" Tabularize
|
||||||
noremap <Leader>ta :Tabularize /
|
noremap <Leader>ta :Tabularize /
|
||||||
|
Loading…
Reference in New Issue
Block a user