Sublime Text CLI plugin
parent
4da84ccaa9
commit
7f20ff3f1d
|
|
@ -8,3 +8,4 @@ lib/custom.bash
|
||||||
plugins/custom.plugins.bash
|
plugins/custom.plugins.bash
|
||||||
*.swp
|
*.swp
|
||||||
.*.un~
|
.*.un~
|
||||||
|
.subl-*/*
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,13 @@
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'Add Sublime Text cli binary "subl" to path'
|
about-plugin 'Add Sublime Text cli binary "subl" to path'
|
||||||
|
|
||||||
export PATH=$PATH:/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
|
SUBL_BIN="/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
||||||
|
SUBL_LOCAL_DIR=$BASH_IT/.subl-bin/
|
||||||
|
SUBL_LOCAL_BIN=$BASH_IT/.subl-bin/subl
|
||||||
|
|
||||||
|
if [ ! -f $SUBL_LOCAL_BIN ]; then
|
||||||
|
mkdir -p $SUBL_LOCAL_DIR
|
||||||
|
ln -s "$SUBL_BIN" $SUBL_LOCAL_BIN
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PATH=$PATH:$SUBL_LOCAL_DIR
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue