DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Day Ago
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 234
Default Your OpenBSD shell setup

How about a thread where we show off our shell configuration dot files? It might be a nice resource; I certainly find myself reinventing the wheel each time I come back to a shell (or an OS) that I haven't used in a while.

So how do you folks have your shells and terminals set up? Strut your stuff.
Reply With Quote
  #2   (View Single Post)  
Old 1 Day Ago
ibara's Avatar
ibara ibara is offline
vBSDcon 2017 troublemaker
 
Join Date: Jan 2014
Posts: 470
Default

I'm simple:
Code:
xterm -bg black fg white -fa Inconsolata-10 +sb
I keep an extremely simple ksh .profile. So simple, I have no qualms including it in my portable version of OpenBSD ksh:
https://github.com/ibara/oksh/blob/master/profile

With the PS1 line uncommented and the bind -m line removed.

And tmux(1) always running. Literally with the defaults. Like I said, I'm simple.
Reply With Quote
  #3   (View Single Post)  
Old 1 Day Ago
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Fdisk Soldier
 
Join Date: Dec 2015
Location: London
Posts: 59
Default

~/.kshrc:
Code:
. /etc/ksh.kshrc
alias su='/usr/bin/su'
alias doas='/usr/bin/doas'
alias passwd='/usr/bin/passwd'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
set -o emacs
PS1='\h: \w \[\033[01;31m\]${?#0}\[\033[00m\]\$ ' 
alias tcp='doas tcpdump -o -a -q -i iwn0'
alias tcpe='doas tcpdump -o -a -q -i em0'
alias pfmon='doas tcpdump -nei pflog0'
~/.Xdefaults:
Code:
XTerm*vt100.cursorBlink:        true
XTerm*vt100.faceName:           monospace:pixelsize=10
XTerm*vt100.allowBoldFonts:     false
XTerm*vt100.scrollBar:          false
XTerm*vt100.cursorUnderLine:    true

! *customization: -color

! BunsenLabs colours

*.foreground: #bfbfbf
*.background: #2e3436

! Black
*.color0: #000000
*.color8: #666666

! Red
*.color1: #9e1828
*.color9: #cf6171

! Green
*.color2: #aece92
*.color10: #c5f779

! Yellow
*.color3: #968a38
*.color11: #fff796

! Blue
*.color4: #414171
*.color12: #4186be

! Magenta
*.color5: #963c59
*.color13: #cf9ebe

!Cyan
*.color6: #418179
*.color14: #71bebe

! White
*.color7: #bebebe
*.color15: #ffffff

*.cursorColor:  #00ff00
I've also added these lines to ~/.profile:
Code:
case "$KSH_VERSION" in
        *MIRBSD*) ;;
        *) export ENV="$HOME/.kshrc" ;;
esac

export PAGER=most
export EDITOR='9 ed'
export VISUAL=vim
export BROWSER=chrome

[ "$(tty)" = "/dev/ttyC0" ] && exec xinit -- -nolisten tcp -tst

print
9 fortune
print
I use the supplied mkshrc example when using that shell, along with my trivial aliases.
__________________
Linux is for people who hate Windows. BSD is for people who love UNIX.

Last edited by Head_on_a_Stick; 1 Day Ago at 05:56 AM. Reason: changed $BROWSER
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD Router & Wireless AP setup chigurh OpenBSD General 14 7th April 2015 06:56 PM
OpenBSD Multiple VPN Setup Dr-D OpenBSD Security 10 7th April 2014 10:50 AM
OpenBSD VPN Setup Dr-D OpenBSD Security 2 4th April 2014 01:23 PM
OpenBSD how to start (basic setup) wesley Guides 4 18th July 2012 06:29 PM
how setup arpwatch for OpenBSD mfaridi OpenBSD Packages and Ports 1 11th December 2008 05:22 PM


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick