+function chpwd {
+ l
+}
+
+### freebsd-specific
+if [[ "$OSTYPE" = "freebsd" ]] {
+ ## vt binds
+ bindkey "^[[H" beginning-of-line #Home
+ bindkey -a "^[[H" beginning-of-line
+ bindkey "^[[F" end-of-line #End
+ bindkey -a "^[[F" end-of-line
+
+ ## oss sound source
+ function s { sysctl hw.snd.default_unit${1:+\=$1} }
+
+ ## install port dependencies from pkg (like pkgsrc `bmake bin-install')
+ function portpkg {
+ case "$1" {
+ build|run)
+ sudo pkg install -AU $(make ${1}-depends-list |
+ sed 's_/usr/ports/_ _' | tr -d '\n')
+ ;;
+ *) echo "Usage: \`portpkg <build|run>' in a port directory"
+ return 1;;
+ }
+ }
+}