This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Handle git identities | |
# | |
# Load this in your bash/zsh config | |
# | |
# Show identity | |
git-ident-show() { | |
git config --get user.name | |
git config --get user.email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------ | |
#-------- CTAGS | |
make-ctags() { | |
ctags -RBF -f .tags \ | |
--file-scope=yes \ | |
--sort=yes \ | |
--extra=+fq \ | |
2>/dev/null | |
} | |
make-ctags-css() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RangerExplorer() | |
exec "silent !ranger --choosefile=/tmp/vim_ranger_current_file " . expand("%:p:h") | |
if filereadable('/tmp/vim_ranger_current_file') | |
exec 'edit ' . system('cat /tmp/vim_ranger_current_file') | |
call system('rm /tmp/vim_ranger_current_file') | |
endif | |
redraw! | |
endfun | |
map <Leader>x :call RangerExplorer()<CR> |