Commit 99ac89e01acbaafb8ae2196cbd78969e53258522

Authored by Ian Foster
1 parent a284c70194
Exists in master

inital sublime text 3 configuration

Showing 5 changed files with 172 additions and 0 deletions Inline Diff

#!/usr/bin/env bash 1 1 #!/usr/bin/env bash
2 2
# the dir this script is in 3 3 # the dir this script is in
cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 4 4 cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5 5
#helper functions 6 6 #helper functions
function link { 7 7 function link {
target=$1 8 8 target=$1
src=$2 9 9 src=$2
if [ -L $src ]; 10 10 if [ -L $src ];
then 11 11 then
rm $src 12 12 rm $src
fi 13 13 fi
mkdir -p `dirname $src` 14 14 mkdir -p `dirname $src`
echo "Creating symlink for $src" 15 15 echo "Creating symlink for $src"
ln -sf $target $src 16 16 ln -sf $target $src
} 17 17 }
18 18
function downloadSubmodules { 19 19 function downloadSubmodules {
dir=$1 20 20 dir=$1
if [ -e $dir/submodules ]; 21 21 if [ -e $dir/submodules ];
then 22 22 then
while read l; 23 23 while read l;
do 24 24 do
if [ -n "$l" ]; 25 25 if [ -n "$l" ];
then 26 26 then
read -a array <<< $l 27 27 read -a array <<< $l
if [ ! -e $dir/${array[1]} ]; 28 28 if [ ! -e $dir/${array[1]} ];
then 29 29 then
git clone ${array[0]} $dir/${array[1]} 30 30 git clone ${array[0]} $dir/${array[1]}
else 31 31 else
echo "Updating git repo ${array[1]}" 32 32 echo "Updating git repo ${array[1]}"
git --git-dir=$dir/${array[1]}/.git pull 33 33 git --git-dir=$dir/${array[1]}/.git pull
fi 34 34 fi
fi 35 35 fi
done < $dir/submodules 36 36 done < $dir/submodules
fi 37 37 fi
} 38 38 }
39 39
40 40
#config functions 41 41 #config functions
function vim { 42 42 function vim {
echo "Linking vim" 43 43 echo "Linking vim"
downloadSubmodules $cwd/vim 44 44 downloadSubmodules $cwd/vim
link $cwd/vim/vimrc ~/.vimrc 45 45 link $cwd/vim/vimrc ~/.vimrc
link $cwd/vim/vim ~/.vim 46 46 link $cwd/vim/vim ~/.vim
} 47 47 }
48 48
function conky { 49 49 function conky {
echo "Linking conky" 50 50 echo "Linking conky"
link $cwd/conky/conkyrc ~/.conkyrc 51 51 link $cwd/conky/conkyrc ~/.conkyrc
} 52 52 }
53 53
#can not be called git, conflicts with download submodules 54 54 #can not be called git, conflicts with download submodules
function git_config { 55 55 function git_config {
echo "Linking git" 56 56 echo "Linking git"
for file in $(ls $cwd/git); 57 57 for file in $(ls $cwd/git);
do 58 58 do
link $cwd/git/$file ~/.$file 59 59 link $cwd/git/$file ~/.$file
done 60 60 done
} 61 61 }
62 62
function shell { 63 63 function shell {
echo "Linking shell" 64 64 echo "Linking shell"
for file in $(ls $cwd/shell); 65 65 for file in $(ls $cwd/shell);
do 66 66 do
link $cwd/shell/$file ~/.$file 67 67 link $cwd/shell/$file ~/.$file
done 68 68 done
} 69 69 }
70 70
function tmux { 71 71 function tmux {
echo "Linking tmux" 72 72 echo "Linking tmux"
link $cwd/tmux/tmux.conf ~/.tmux.conf 73 73 link $cwd/tmux/tmux.conf ~/.tmux.conf
} 74 74 }
75 75
function xscreensaver { 76 76 function xscreensaver {
echo "Linking xscreensaver" 77 77 echo "Linking xscreensaver"
link $cwd/xscreensaver/xscreensaver ~/.xscreensaver 78 78 link $cwd/xscreensaver/xscreensaver ~/.xscreensaver
} 79 79 }
80 80
function awesome { 81 81 function awesome {
echo "Linking awesome" 82 82 echo "Linking awesome"
downloadSubmodules $cwd/awesome 83 83 downloadSubmodules $cwd/awesome
link $cwd/awesome/awesome ~/.config/awesome 84 84 link $cwd/awesome/awesome ~/.config/awesome
} 85 85 }
86 86
function openbox { 87 87 function openbox {
echo "Linking openbox" 88 88 echo "Linking openbox"
link $cwd/openbox/openbox ~/.config/openbox 89 89 link $cwd/openbox/openbox ~/.config/openbox
} 90 90 }
91 91
function terminator { 92 92 function terminator {
echo "Linking terminator" 93 93 echo "Linking terminator"
link $cwd/terminator/terminator ~/.config/terminator 94 94 link $cwd/terminator/terminator ~/.config/terminator
} 95 95 }
96 96
function tint2 { 97 97 function tint2 {
echo "Linking tint2" 98 98 echo "Linking tint2"
link $cwd/tint2/tint2 ~/.config/tint2 99 99 link $cwd/tint2/tint2 ~/.config/tint2
} 100 100 }
101 101
102 function sublime {
103 echo "Linking Sublime Text"
104 link $cwd/sublime-text-3/User ~/.config/sublime-text-3/Packages/User
105 }
106
function scripts { 102 107 function scripts {
#DO NOTHING 103 108 #DO NOTHING
echo "Skipping scripts" 104 109 echo "Skipping scripts"
} 105 110 }
106 111
function run { 107 112 function run {
if [ $1 == "git" ]; 108 113 if [ $1 == "git" ];
then 109 114 then
c="git_config" 110 115 c="git_config"
116 elif [ $1 == "sublime-text-3" ];
117 then
118 c="sublime"
else 111 119 else
c=$1 112 120 c=$1
fi 113 121 fi
eval ${c} 114 122 eval ${c}
} 115 123 }
116 124
function all { 117 125 function all {
sublime-text-3/User/.gitignore View file @ 99ac89e
File was created 1 *
2 *.sublime-settingsb
3 !.gitignore
sublime-text-3/User/Package Control.sublime-settings View file @ 99ac89e
File was created 1 {
2 "installed_packages":
3 [
4 "SideBarEnhancements",
5 "Theme - Soda"
6 ]
7 }
sublime-text-3/User/Preferences.sublime-settings View file @ 99ac89e
File was created 1 {
2 "always_prompt_for_file_reload": false,
3 "always_show_minimap_viewport": true,
4 "animation_enabled": true,
5 "atomic_save": true,
6 "auto_close_tags": true,
7 "auto_complete": true,
8 "auto_complete_commit_on_tab": true,
9 "auto_complete_delay": 50,
10 "auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
11 "auto_complete_size_limit": 4194304,
12 "auto_complete_triggers":
13 [
14 {
15 "characters": "<",
16 "selector": "text.html"
17 }
18 ],
19 "auto_complete_with_fields": false,
20 "auto_find_in_selection": false,
21 "auto_indent": true,
22 "auto_match_enabled": true,
23 "binary_file_patterns":
24 [
25 "*.jpg",
26 "*.jpeg",
27 "*.png",
28 "*.gif",
29 "*.ttf",
30 "*.tga",
31 "*.dds",
32 "*.ico",
33 "*.eot",
34 "*.pdf",
35 "*.swf",
36 "*.jar",
37 "*.zip"
38 ],
39 "bold_folder_labels": true,
40 "caret_style": "smooth",
41 "close_windows_when_empty": true,
42 "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
43 "copy_with_empty_selection": true,
44 "create_window_at_startup": true,
45 "default_encoding": "UTF-8",
46 "default_line_ending": "unix",
47 "detect_indentation": true,
48 "dictionary": "Packages/Language - English/en_US.dic",
49 "drag_text": true,
50 "draw_centered": false,
51 "draw_indent_guides": true,
52 "draw_minimap_border": false,
53 "draw_white_space": "selection",
54 "enable_hexadecimal_encoding": true,
55 "enable_telemetry": "auto",
56 "ensure_newline_at_eof_on_save": false,
57 "fade_fold_buttons": true,
58 "fallback_encoding": "Western (Windows 1252)",
59 "file_exclude_patterns":
60 [
61 "*.pyc",
62 "*.pyo",
63 "*.exe",
64 "*.dll",
65 "*.obj",
66 "*.o",
67 "*.a",
68 "*.lib",
69 "*.so",
70 "*.dylib",
71 "*.ncb",
72 "*.sdf",
73 "*.suo",
74 "*.pdb",
75 "*.idb",
76 ".DS_Store",
77 "*.class",
78 "*.psd",
79 "*.db",
80 "*.sublime-workspace"
81 ],
82 "find_selected_text": true,
83 "fold_buttons": false,
84 "folder_exclude_patterns":
85 [
86 ".svn",
87 ".git",
88 ".hg",
89 "CVS"
90 ],
91 "font_options":
92 [
93 ],
94 "font_size": 10,
95 "gpu_window_buffer": "auto",
96 "gutter": true,
97 "highlight_line": true,
98 "highlight_modified_tabs": true,
99 "hot_exit": false,
100 "ignored_packages":
101 [
102 ],
103 "indent_guide_options":
104 [
105 "draw_normal"
106 ],
107 "indent_subsequent_lines": true,
108 "indent_to_bracket": false,
109 "index_files": true,
110 "line_numbers": true,
111 "line_padding_bottom": 0,
112 "line_padding_top": 0,
113 "margin": 0,
114 "match_brackets": true,
115 "match_brackets_angle": false,
116 "match_brackets_braces": true,
117 "match_brackets_content": true,
118 "match_brackets_square": true,
119 "match_selection": true,
120 "match_tags": true,
121 "move_to_limit_on_up_down": false,
122 "open_files_in_new_window": true,
123 "overlay_scroll_bars": "system",
124 "preview_on_click": true,
125 "remember_open_files": false,
126 "rulers":
127 [
128 80
129 ],
130 "save_on_focus_lost": false,
131 "scroll_past_end": false,
132 "scroll_speed": 1.0,
133 "shift_tab_unindent": false,
134 "show_full_path": true,
135 "show_panel_on_build": true,
136 "show_tab_close_buttons": true,
137 "smart_indent": true,
138 "soda_folder_icons": true,
139 "spell_check": false,
140 "tab_completion": true,
141 "tab_size": 4,
142 "theme": "Soda Dark 3.sublime-theme",
143 "translate_tabs_to_spaces": true,
144 "tree_animation_enabled": true,
145 "trim_automatic_white_space": true,
146 "trim_trailing_white_space_on_save": false,
147 "use_simple_full_screen": false,
148 "use_tab_stops": true,
149 "word_wrap": "auto",
150 "wrap_width": 0
151 }
sublime-text-3/User/Side Bar.sublime-settings View file @ 99ac89e
File was created 1 {
2 "version": "2012.06.06.1611.2"
3 }