-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-new-workstation.sh
executable file
·108 lines (80 loc) · 2.71 KB
/
setup-new-workstation.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
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
103
104
105
106
107
#!/bin/bash
# This script is meant to be run on the new workstation.
function install_powerline {
aptitude install \
build-essential \
python-pip \
git
pushd ~/repos
git clone https://github.com/libgit2/libgit2
mkdir libgit2.build
cd libgit2.build
make all
make install
popd
pip install --upgrade psutil
pip install --upgrade pygit2
pip install --upgrade powerline-status
# Install the desired font...
mkdir /tmp/powerline-font-install
pushd /tmp/powerline-font-install
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts
mv *.otf ~/.fonts/
fc-cache -vf ~/.fonts/
mkdir -p ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
popd
# Integrate it into Vim...
# This is done by modifying the .vimrc file to contain these lines:
#
# python from powerline.vim import setup as powerline_setup
# python powerline_setup()
# python del powerline_setup
# set laststatus=2
# Integrate it into Bash...
# Add these lines to ~/.bashrc :
#
# declare POWERLINE_REPOSITORY_ROOT=$(pip show powerline-status | grep Location: | sed 's/Location: //')
# declare POWERLINE_BASH_CONTINUATION=1
# declare POWERLINE_BASH_SELECT=1
# source ${POWERLINE_REPOSITORY_ROOT}/powerline/bindings/bash/powerline.sh
}
declare -a VIM_POWERLINE_APT_PACKAGES=(
)
declare -a VIM_POWERLINE_PIP_PACKAGES=(
#git+git://github.com/Lokaltog/powerline
psutil
pygit2
)
declare -a VIM_APT_PACKAGES=(
python-pip # For powerline
)
declare -a DEVELOPMENT_PACKAGES=(
git
exuberant-ctags
subversion
bear
ccache
build-essential
)
function vim_add_vundle {
local VUNDLE_DIR=~/.git/bundle/VundleVim
mkdir -p "${VUNDLE_DIR}"
git clone https://github.com/VundleVim/Vundle.vim.git "${VUNDLE_DIR}"
# Once this is done *and* the right .vimrc file is in place, run the shell command
# `vim +PluginInstall +qall`
}
# TODO: Add symlinks related to config files / scripts stored in this repo.
# TODO: add packages and do apt-file udpate
# TODO: Install Vundle
# TODO: enable inbound ssh
# TODO: establish SSH credentials with spaceman
# TODO: copy spaceman's ssh config file
# TODO: copy ~cconvey/.config/chromium --> new laptop
# TODO: add icons and/or scripts for launching chromium with the particular user I want
# TODO: setup repo clones
# TODO: copy / sync scripts (via scratch repo?)
# TODO: setup .gitrc files as appropriate
# git config --global core.excludesfile ~/.gitignore_global