github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jneitzel / v6shell

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Wiki (4)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (15)
    • master ✓
    • osh-20070321
    • osh-20070324
    • osh-20070707
    • osh-20080109
    • osh-20080629
    • osh-20081026
    • osh-20081122
    • osh-20081213
    • osh-20090527
    • osh-20091029
    • osh-20091122
    • osh-20091127
    • osh-20091218
    • osh-20100228
  • Switch Tags (14)
    • release.osh-20100228
    • release.osh-20091218
    • release.osh-20091127
    • release.osh-20091122
    • release.osh-20091029
    • osh-20090527
    • osh-20081213
    • osh-20081122
    • osh-20081026
    • osh-20080629
    • osh-20080109
    • osh-20070707
    • osh-20070324
    • osh-20070321
  • Branch List
Sending Request…

V6 Thompson Shell Port — Read more

  Cancel

http://v6shell.org/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Change date in [A-Z][A-Z]* & examples/[A-Z][A-Z]* doc files. 
jneitzel (author)
Sun Feb 28 13:04:25 -0800 2010
commit  06014f3a29d8ab118e88dc95b699b2e595130294
tree    c2e0c0739a93d135fe30dc9ffc539e772f2ced64
parent  b9fc17eb7694ed4bda6209189b682070a7e7dd28
v6shell / examples / dot.oshrc examples/dot.oshrc
100644 75 lines (57 sloc) 1.646 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
: $h/.oshrc - " Modify to taste. "
:
: " @(#)$Id$ "
:
: " The author of this file, J.A. Neitzel <jan (at) v6shell (dot) org>, "
: " hereby grants it to the public domain. "
:
: " From: http://v6shell.org/rc_files "
:
 
: fd2 -e echo "debug: Executing `"$h/.oshrc"' now..."
 
printenv TERM >/dev/null
if $s = 0 goto TERM_OK
 
setenv TERM vt100
: fallthrough
 
: TERM_OK
if ! \( $n = 1 -a X$1 = Xsh6 \) goto TTY_CHECK
 
unsetenv TTY
: fallthrough
 
: TTY_CHECK
printenv TTY | grep \^$t\$ >/dev/null
if $s = 0 goto continue
 
setenv TTY $t
 
printenv TERM | grep '^rxvt$' >/dev/null
if $s = 0 goto C
 
:
: " The terminal I normally use is rxvt-unicode (urxvt), "
: " but I also use others on occasion. Normally, they're "
: " UTF-8 capable, but that's not always true. "
:
setenv LC_ALL en_US.UTF-8
setenv LESSCHARSET utf-8
printf "%b" '\033]701;en_US.UTF-8\007' >/dev/tty
goto Next
 
: C - " Default to the C locale for rxvt. "
 
setenv LC_ALL C
: fallthrough
 
: Next - " Set the window title for terminal emulators under X. "
 
if $n = 1 -a X$1 = Xsh6 goto sh6
xtitle ; goto stty
: sh6
sh6 -c xtitle
: fallthrough
 
: stty - " Set terminal options. "
stty altwerase imaxbel -oxtabs <-
stty status '^T' <-
: fallthrough
 
: continue - " Okay, continue as normal. "
 
:
: " Other initialization routines that the user wishes to execute "
: " for each interactive shell can be placed here. "
:
 
if ! \( $n = 1 -a X$1 = Xsh6 \) goto osh
if ! { which sh6 >/dev/null } goto shift
: " Replace osh w/ sh6 . " ; exec sh6 <-
: shift
shift
: osh
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server