-
Notifications
You must be signed in to change notification settings - Fork 57
/
commandline_utils.sh
executable file
·76 lines (60 loc) · 1.85 KB
/
commandline_utils.sh
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
#!/bin/bash
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# command line utils Setup #"
echo "############################"
echo ""
echo "@author Andrew Hundt <[email protected]>"
echo ""
sudo apt-get update
sudo apt-get install -y htop vim
echo "#################"
echo "# ack (ack-grep)"
echo "#################"
echo "http://beyondgrep.com/"
sudo apt-get install -y ack-grep
echo "###############"
echo "# tmux "
echo "###############"
echo ""
echo "# https://wiki.ubuntu.com/ubuntu-make"
echo ""
echo ""
echo "Installs tmux persistent multiplexed console,"
echo "so when you lose internet with ssh your programs keep running"
echo ""
echo "https://help.ubuntu.com/community/Repositories/Ubuntu"
sudo apt-get install -y tmux
echo "###############"
echo "# byobu - http://byobu.co/"
echo "###############"
echo ""
echo "tool that makes life with tmux better"
echo "see comments of this file for additional setup steps"
echo ""
echo "https://www.digitalocean.com/community/tutorials/how-to-install-and-use-byobu-for-terminal-management-on-ubuntu-16-04"
echo "https://codeyarns.com/2016/01/28/how-to-use-mouse-in-byobu/"
sudo apt-get install -y byobu
echo ""
echo "Additional byobu manual setup steps:"
echo ""
echo " byobu-enable"
echo " byobu-select-backend"
echo ""
echo "# also set default shell to zsh: https://askubuntu.com/questions/296377/how-do-i-change-the-default-shell-used-in-byobu-tmux"
echo "cp -a robotics-setup/.byobu ~/.byobu folder"
echo ""
echo "# OR Put the following in your $HOME/.byobu/.tmux.conf:"
echo ""
echo "set -g default-shell /usr/bin/zsh"
echo "set -g default-command /usr/bin/zsh"
echo "set -g mouse-select-pane on"
echo "set -g mouse-select-window on"
echo "set -g mouse-resize-pane on"
echo "set -g mouse-utf8 on"
cd $DIR