Add codi shell wrapper
parent
adc550b2ed
commit
799dd32950
14
.bashrc
14
.bashrc
|
@ -115,3 +115,17 @@ if [[ -z "${SSH_CONNECTION}" ]]; then
|
|||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
fi
|
||||
# }}}
|
||||
|
||||
# Codi
|
||||
# Usage: codi [filetype] [filename]
|
||||
codi() {
|
||||
local syntax="${1:-python}"
|
||||
shift
|
||||
nvim -c \
|
||||
"let g:startify_disable_at_vimenter = 1 |\
|
||||
set bt=nofile ls=0 noru nonu nornu |\
|
||||
hi ColorColumn ctermbg=NONE |\
|
||||
hi VertSplit ctermbg=NONE |\
|
||||
hi NonText ctermfg=0 |\
|
||||
Codi $syntax" "$@"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue