Menu

[65b014]: / rc / shell.csh  Maximize  Restore  History

Download this file

70 lines (52 with data), 2.2 kB

 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
# Aliases for csh/tcsh in JOE shell window
if ( $JOEWIN != "" && $OSTYPE == "cygwin" ) then
# Read initial terminal size from environment
stty rows $LINES cols $COLUMNS
# Continually update terminal size from JOE's named pipe.
set fn=`cygpath "$JOEDATA/vt/joewinpty.exe"`
if ( -e "$fn" ) then
set PTYHELPER="$fn"
else
set fn=`cygpath "$JOEHOME/vt/joewinpty.exe"`
if ( -e "$fn" ) then
set PTYHELPER="$fn"
endif
endif
if ( "$PTYHELPER" != "" ) then
"$PTYHELPER" winsize | sh -c 'while read w h ; do stty -F /dev/tty rows $h cols $w ; done' &
unset PTYHELPER
endif
unset fn
endif
alias joehelp 'echo "clear - erase buffer"; \\
echo "joe - edit file"; \\
echo "math 1+2 - calculator"; \\
echo "pop - dismiss shell"; \\
echo "parse - grep parse the buffer"; \\
echo "parserr - compile parse the buffer"; \\
echo "release - drop parsed messages"; \\
echo "markb - mark beginning of region"; \\
echo "markk - mark end of region"; \\
echo "mark cmd - mark output of command"'
alias clear "echo -n \{shell_clear}"
alias parse "echo -n \{shell_gparse}"
alias parserr "echo -n \{shell_parserr}"
alias release "echo -n \{shell_release}"
alias markb "echo -n \{shell_markb}"
alias markk "echo -n \{shell_markk}"
alias mark "echo -n \{shell_markb}; "\!\*"; echo -n \{shell_markk}"
alias math "echo -n \{shell_math,"\\\"\!\*\\\"",shell_rtn\\!,shell_typemath}; cat >/dev/null"
alias pop "echo -n \{shell_pop}"
if ( $JOEWIN != "" && $OSTYPE == "cygwin" ) then
alias edit 'echo -n \{shell_edit,shell_dellin\\!,\"`cygpath -aw \!* | sed s/\\\\/\\//g`\",shell_rtn}'
alias joe 'echo -n \{shell_edit,shell_dellin\\!,\"`cygpath -aw \!* | sed s/\\\\/\\//g`\",shell_rtn}'
alias cd 'cd \!*; echo -n \{shell_cd,shell_dellin\\!,\"`cygpath -aw . | sed s/\\\\/\\//g `\",shell_rtn}'
else
alias edit "echo -n \{shell_edit,"\\\"\!\*\\\"",shell_rtn}"
alias joe "echo -n \{shell_edit,"\\\"\!\*\\\"",shell_rtn}"
alias cd "cd "\!\*"; echo -n \{shell_cd,shell_dellin\\!,"\\\""; pwd | tr -d '\n'; echo -n /"\\\"",shell_rtn}"
endif
clear
echo
echo Type joehelp for editor shell commands
echo
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.