Install vim without X11 on FreeBSD

I can work with vi, but after using vim for years I just can't work without it. The only problem is, if you install vim with pkg install vim it installs X11 and related crap. This should be done as root. First update portsnap: # get it portsnap fetch update # extract it portsnap extract root@bsd-test:~ # cd /usr/ports/editors/vim root@bsd-test:/usr/ports/editors/vim # ll total 27 -rw-r--r-- 1 root wheel 7022 Sep 23 23:06 Makefile -rw-r--r-- 1 root wheel 175 Sep 23 23:06 distinfo drwxr-xr-x 2 root wheel 6 Sep 28 14:25 files/ -rw-r--r-- 1 root wheel 601 Jun 14 2015 pkg-descr -rw-r--r-- 1 root wheel 8897 Jan 9 2017 pkg-plist root@bsd-test:/usr/ports/editors/vim # make WITHOUT_X11=yes install clean For the option questions I only changed the first one to console and not using any graphic stuff.

Setup Oh My Zsh on FreeBSD

“Oh My Zsh is an open source, community-driven framework for managing your zsh configuration. Sounds boring. Let's try again. Oh My Zsh will not make you a 10x developer…but you might feel like one.” First of we need some prerequisites: pkg zsh curl git Let's get this install going. # become root su - # check if pkg is installed if it is not it will promt you with an easy installer.

Reduce tty count on FreeBSD

After installing FreeBSD I noticed lots of tty's open that I'll probably never use so lets disable them with this small script: #!/bin/sh sed -i '' -e's|ttyv0.*|ttyv0 "/usr/libexec/getty Pc" xterm on secure|' /etc/ttys sed -i '' -e's|ttyv1.*|ttyv1 "/usr/libexec/getty Pc" xterm on secure|' /etc/ttys sed -i '' -e's|ttyv2.*|ttyv2 "/usr/libexec/getty Pc" xterm off secure|' /etc/ttys sed -i '' -e's|ttyv3.*|ttyv3 "/usr/libexec/getty Pc" xterm off secure|' /etc/ttys sed -i '' -e's|ttyv4.*|ttyv4 "/usr/libexec/getty Pc" xterm off secure|' /etc/ttys sed -i '' -e's|ttyv5.