etc: OPNsense customisations

o add more key bindings to .cshrc
o add .vimrc to base installation
o disable fortune cookie
This commit is contained in:
Franco Fichtner 2023-05-09 14:22:39 +02:00
parent 5f0c664ab0
commit 3ff0d1f502
5 changed files with 29 additions and 1 deletions

View file

@ -40,6 +40,10 @@ if ($?prompt) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
bindkey "\e[1~" beginning-of-line
bindkey "\e[2~" overwrite-mode
bindkey "\e[3~" delete-char
bindkey "\e[4~" end-of-line
endif
endif

View file

@ -37,6 +37,10 @@ if ($?prompt) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
bindkey "\e[1~" beginning-of-line
bindkey "\e[2~" overwrite-mode
bindkey "\e[3~" delete-char
bindkey "\e[4~" end-of-line
endif
endif

View file

@ -26,4 +26,4 @@ if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
# Display a random cookie on each login.
if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi
#if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi

View file

@ -7,6 +7,10 @@ PACKAGE= vi
SRCDIR= ${SRCTOP}/contrib/nvi
SUBDIR+= catalog
CONFS= dot.vimrc
CONFSDIR_dot.vimrc= /root
CONFSNAME_dot.vimrc= .vimrc
WARNS?= 0 # some warn issues on 32 bit machines
VI= nvi

16
usr.bin/vi/dot.vimrc Normal file
View file

@ -0,0 +1,16 @@
command Zap %s/[\xA0]/ /g
set viminfo='20,<1000
set colorcolumn=80
syntax on
set ttymouse=
set paste
set ts=8
set hls
set nu
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif