-
Notifications
You must be signed in to change notification settings - Fork 7
/
ein_jaco.screenrc
118 lines (101 loc) · 3.5 KB
/
ein_jaco.screenrc
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# various settings suggested by other users
#
# derived from the Paradox pair programming screenrc, UChicago 2010
# ~ yes, we are all total newbs ~
#
startup_message off
#defscrollback 5000
defscrollback 5000
escape ``
# this hard status was stolen from the net, all credit goes to its originator
hardstatus alwayslastline
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
# A hint for using multiuser mode: make sure that both parties have identically
# sized terminals, otherwise there could be graphical mismatches and undrawn text
# for one party :( .
# turn multiuser mode on so others can connect.
multiuser on
# add the specified user to this screen session so that they can connect.
# the initiating user is allowed automatically, but add both so either can
# run this script without modification.
#acladd gen
acladd oberlin
acladd stefie10
# Starts a new screen with title " MAKE"
# this is basically equivalent to pressing the following from within screen:
# `c (starts a new window)
# `:title " MAKE" (sets the title to " MAKE")
#screen -t " MAKE"
#stuff "unset STY"
#stuff "screen"
screen -t " einR"
stuff "source ./setup.sh"
stuff "catkin_make && gdb --args ./devel/lib/ein/ein physical right gui"
screen -t " replR"
stuff "ARM=right screen -m -c src/ein/ein_client.screenrc"
screen -t " free"
stuff "source ./setup.sh"
screen -t " vim"
stuff "source ./setup.sh"
stuff "cd src/ein/src"
stuff "vim -p ein.cpp ein.h config.h gaussian_map.cpp gaussian_map.h ../back/scene.back ../back/scan.back"
screen -t " git"
stuff "source ./setup.sh"
stuff "cd $(rospack find ein)"
screen -t " emacs"
stuff "source ./setup.sh"
stuff "cd $(rospack find ein)"
stuff "emacs -nw src/ein.cpp"
#######
#screen -t " subscreenL"
#stuff "subscreen disabled, uncomment in screenrc. in a subscreen you must double meta / escape characters. remember to quit subscreens, too."
#######
screen -t " roscore"
stuff "source ./setup.sh"
stuff "roscore"
screen -t " kinova_bringup"
stuff "source ./setup.sh"
stuff 'sudo bash -c "ROBOT=localhost source ./setup.sh && roslaunch kinova_bringup kinova_robot.launch"'
screen -t " website"
stuff "cd src/ein/doc && jekyll serve"
# Now the focus is in the newly created screen.
# The stuff command issues the stuff between the quotes to the terminal.
# Note that the ^M character issues an 'enter' to the terminal, which is
# necessary if you want this command to go through. You can write
# in vim by entering -- INSERT -- mode, pressing ctrl+v (transforming your
# cursor to a ^ temporarily), and finally pressing enter. You can do this
# with other special characters in the analogous fashion.
#stuff "cd ~
#"
# You can do almost anything you want with the stuff command, even connect
# to another multi-user screen session within this particular screen, resulting
# in nested screen sessions with two status bars. Note that you would have to press ``
# to activate meta in the sub-screen and ```` to write ` in the subscreen.
# For instance, suppose you consistently need to open the same set of files
# for a given project. You can summon them automatically and with elegance.
# screen -t " ourImportantFile"
# stuff "cd ~
#"
# stuff "vi -O ourImportantFile.c ourImportantFile.h
#"
#
# Note the -O command followed by two files when starting vim. This starts the files
# in a vertical split configuration.