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`
|
||||
|
||||
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: Rate-limit ssh
|
||||
|
||||
# ICMP(v6)
|
||||
alg "icmp"
|
||||
|
||||
group "services" in on vioif0 {
|
||||
pass stateful proto tcp to any port ssh
|
||||
}
|
||||
$services = { mdns, ssh }
|
||||
|
||||
group "localhost" in on lo0 {
|
||||
pass stateful all
|
||||
@ -16,6 +11,8 @@ group default {
|
||||
# Default rule
|
||||
block all
|
||||
|
||||
pass stateful in proto { tcp, udp } to any port $services
|
||||
|
||||
# Let it goooooo
|
||||
pass stateful out all
|
||||
}
|
||||
|
@ -118,5 +118,6 @@
|
||||
(setq js-switch-indent-offset 4)
|
||||
|
||||
;; Flycheck
|
||||
(when (require 'flycheck nil 'noerror)
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode)
|
||||
(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5"))
|
||||
(setq flycheck-perl-include-path '("$HOME/perl5/lib/perl5")))
|
||||
|
@ -2,13 +2,14 @@
|
||||
|
||||
# Check login shell first
|
||||
if [ -t 0 ] && [ -x /usr/games/fortune ]; then
|
||||
echo
|
||||
/usr/games/fortune
|
||||
echo
|
||||
fi
|
||||
|
||||
# user specific aliases
|
||||
alias l='ls -lhF'
|
||||
alias la='ls -lahF'
|
||||
alias l='ls -blhF'
|
||||
alias la='ls -blahF'
|
||||
alias ..='cd ..'
|
||||
alias digg='dig +short +noshort'
|
||||
alias h='echo $HOME'
|
||||
@ -19,10 +20,15 @@ alias p='cat'
|
||||
alias n='cat -n'
|
||||
|
||||
# exports
|
||||
export PS1='$USER:/${PWD#/}:!$ '
|
||||
export HISTFILE="$HOME/.sh_history"
|
||||
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
|
||||
export EDITOR='emacs -nw'
|
||||
elif command -v mg > /dev/null 2>&1; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user