Update 2023-01-21 11:09 OpenBSD/amd64

This commit is contained in:
c0dev0id 2023-01-21 11:09:30 +01:00
parent 1017811182
commit c8a559f581
3 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh -x #!/bin/sh -x
doas ifconfig trunk1 destroy
doas ifconfig trunk0 destroy doas ifconfig trunk0 destroy
doas sh /etc/netstart doas sh /etc/netstart
doas rcctl restart resolvd doas rcctl restart resolvd

11
.kshrc
View File

@ -55,10 +55,6 @@ HISTFILE=$HOME/.ksh-history
HISTSIZE=2000 HISTSIZE=2000
export HISTCONTROL HISTFILE HISTSIZE export HISTCONTROL HISTFILE HISTSIZE
### CDPATH
CDPATH=.:/usr/ports:~/code
export CDPATH
### SOFTWARE PREFERENCES ### SOFTWARE PREFERENCES
EDITOR="vim" EDITOR="vim"
VISUAL="vim" VISUAL="vim"
@ -325,6 +321,11 @@ CVSROOT=sdk@cvs.openbsd.org:/cvs
alias cvs-diff="cvs -d $CVSROOT diff -uNp" alias cvs-diff="cvs -d $CVSROOT diff -uNp"
alias cvs-commit="doas cvs -d $CVSROOT commit" alias cvs-commit="doas cvs -d $CVSROOT commit"
alias cvs-update="doas cvs -z 1 -d $CVSROOT -q up -Pd -A" alias cvs-update="doas cvs -z 1 -d $CVSROOT -q up -Pd -A"
cvs-update-all() {
for p in ports src xenocara www; do
cd /usr/$p && cvs-update;
done
}
alias cvs-release="cvs -d $CVSROOT release" alias cvs-release="cvs -d $CVSROOT release"
alias cvs-checkout="doas cvs -z 1 -qd $CVSROOT checkout -P" alias cvs-checkout="doas cvs -z 1 -qd $CVSROOT checkout -P"
cvs-import-simulate() { cvs-import-simulate() {
@ -340,7 +341,7 @@ portclean() {(
)} )}
pmark() { pwd > /var/cache/pmark; } pmark() { pwd > /var/cache/pmark; }
p() { cd "$(</var/cache/pmark)"; } p() { cd "$(</var/cache/pmark)"; }
pj() { cd "$(port jump $1)"; } pj() { cd "/usr/ports/$(portjump $1)"; }
po() { cd "$(</var/cache/pmark)" && cd "$(make show=WRKSRC)"; } po() { cd "$(</var/cache/pmark)" && cd "$(make show=WRKSRC)"; }
alias portsweep='doas find . \( -name "*.orig" -or -empty \) -delete' alias portsweep='doas find . \( -name "*.orig" -or -empty \) -delete'
pdiff() {( pdiff() {(

View File

@ -198,9 +198,12 @@ set statusline=%#VisualNOS#
set statusline+=%F\ (%{&filetype}) set statusline+=%F\ (%{&filetype})
set statusline+=%= set statusline+=%=
set statusline+=%m%r%h%w%q set statusline+=%m%r%h%w%q
set statusline+=\ %{&fileformat}/%{&fileencoding?&fileencoding:&encoding} set statusline+=\ (%{&fileformat}/%{&fileencoding?&fileencoding:&encoding})
set statusline+=\ %b/0x%B set statusline+=\ (%b/0x%B)
set statusline+=\ %c\ %p%% set statusline+=\ (%{(mode()=='V')?wordcount().visual_words:wordcount().words}w
set statusline+=/%{(mode()=='V')?wordcount().visual_chars:wordcount().chars}c)
set statusline+=\ (%ly/%cx)
set statusline+=\ %p%%
set statusline+=\ set statusline+=\
" ITALIC FIX " ITALIC FIX