Merge branch 'main' of https://git.seriousbusiness.international/swaggboi/netbsd_dot_files
This commit is contained in:
commit
29797ec96d
@ -10,8 +10,3 @@ things that don't use `$HOME/.config`.
|
|||||||
`my_usr` represents `/usr`
|
`my_usr` represents `/usr`
|
||||||
|
|
||||||
etc.
|
etc.
|
||||||
|
|
||||||
## TODO
|
|
||||||
|
|
||||||
- Login shell check to do fortune output (breaks `rsync`)
|
|
||||||
- Make `mg` stop leaving those damn tilde files
|
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
# TODO: Allow in ICMP(v6) by message type
|
# TODO: Allow in ICMP(v6) by message type
|
||||||
# TODO: Rate-limit ssh
|
# TODO: Rate-limit ssh
|
||||||
|
|
||||||
# ICMP(v6)
|
$services = { mdns, ssh }
|
||||||
alg "icmp"
|
|
||||||
|
|
||||||
group "services" in on vioif0 {
|
|
||||||
pass stateful proto tcp to any port ssh
|
|
||||||
}
|
|
||||||
|
|
||||||
group "localhost" in on lo0 {
|
group "localhost" in on lo0 {
|
||||||
pass stateful all
|
pass stateful all
|
||||||
@ -16,6 +11,8 @@ group default {
|
|||||||
# Default rule
|
# Default rule
|
||||||
block all
|
block all
|
||||||
|
|
||||||
|
pass stateful in proto { tcp, udp } to any port $services
|
||||||
|
|
||||||
# Let it goooooo
|
# Let it goooooo
|
||||||
pass stateful out all
|
pass stateful out all
|
||||||
}
|
}
|
||||||
|
@ -118,5 +118,6 @@
|
|||||||
(setq js-switch-indent-offset 4)
|
(setq js-switch-indent-offset 4)
|
||||||
|
|
||||||
;; Flycheck
|
;; Flycheck
|
||||||
(add-hook 'after-init-hook #'global-flycheck-mode)
|
(when (require 'flycheck nil 'noerror)
|
||||||
(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5"))
|
(add-hook 'after-init-hook #'global-flycheck-mode)
|
||||||
|
(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5")))
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
# Check login shell first
|
# Check login shell first
|
||||||
if [ -t 0 ] && [ -x /usr/games/fortune ]; then
|
if [ -t 0 ] && [ -x /usr/games/fortune ]; then
|
||||||
|
echo
|
||||||
/usr/games/fortune
|
/usr/games/fortune
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# user specific aliases
|
# user specific aliases
|
||||||
alias l='ls -lhF'
|
alias l='ls -blhF'
|
||||||
alias la='ls -lahF'
|
alias la='ls -blahF'
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias digg='dig +short +noshort'
|
alias digg='dig +short +noshort'
|
||||||
alias h='echo $HOME'
|
alias h='echo $HOME'
|
||||||
@ -19,10 +20,15 @@ alias p='cat'
|
|||||||
alias n='cat -n'
|
alias n='cat -n'
|
||||||
|
|
||||||
# exports
|
# exports
|
||||||
export PS1='$USER:/${PWD#/}:!$ '
|
|
||||||
export HISTFILE="$HOME/.sh_history"
|
export HISTFILE="$HOME/.sh_history"
|
||||||
export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All/"
|
export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All/"
|
||||||
|
|
||||||
|
if [ $USER = 'root' ]; then
|
||||||
|
export PS1='$USER:/${PWD#/}:!# '
|
||||||
|
else
|
||||||
|
export PS1='$USER:/${PWD#/}:!$ '
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v emacs > /dev/null 2>&1; then
|
if command -v emacs > /dev/null 2>&1; then
|
||||||
export EDITOR='emacs -nw'
|
export EDITOR='emacs -nw'
|
||||||
elif command -v mg > /dev/null 2>&1; then
|
elif command -v mg > /dev/null 2>&1; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user