From LedHed's Wiki
Jump to: navigation, search

INCOMPLETE


Overview

A buddy of mine who is a FreeBSD fanatic got me using it and I fell in love with it's command line, specifically the command history completion. OpenBSD's default root shell is ksh and while it does tab completion and command history, it doesn't do command history completion. I also really like a colored command line interface for quickly identifying folders, links, and executables (ya this is a Linux carryover). This article will show how to add color and add command history completion to the Korn shell.


Prompt

Add this to your .profile file:

PS1='$USER:$PWD# '
export PS1


COLORLS

pkg_add -r colorls

Add this to your .profile file:

LSCOLORS=gxfxhxhxcxhxhxBxBxhxhx
export LSCOLORS
alias ls='colorls -G'


Reference

https://geoff.greer.fm/lscolors/