forked from forivall/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-atom.sh
executable file
·26 lines (23 loc) · 961 Bytes
/
setup-atom.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
#!/usr/bin/env bash
cd "$(dirname "$0")"
if ! type realpath >/dev/null ; then
if ! type grealpath >/dev/null ; then
realpath() { grealpath "$@"; }
else
realpath() { readlink -f "$@"; }
fi
fi
# TODO: use gnu stow
# http:https://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html?round=two
ln -fs "$(realpath atom/build-tools-cpp.projects)" ~/.atom/build-tools-cpp.projects
ln -fs "$(realpath atom/command-toolbar.json)" ~/.atom/command-toolbar.json
ln -fs "$(realpath atom/config.cson)" ~/.atom/config.cson
ln -fs "$(realpath atom/init.coffee)" ~/.atom/init.coffee
if [[ "$(uname)" == "Darwin" ]] ; then
ln -fs "$(realpath atom/keymap.darwin.cson)" ~/.atom/keymap.cson
else
ln -fs "$(realpath atom/keymap.cson)" ~/.atom/keymap.cson
fi
#ln -fs "$(realpath atom/projects.cson)" ~/.atom/projects.cson
ln -fs "$(realpath atom/snippets.cson)" ~/.atom/snippets.cson
ln -fs "$(realpath atom/styles.less)" ~/.atom/styles.less