Make an alias to sublime bin subl.
Edit file
~/.bash_profile
add
alias sublime="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
restart bash if needed
| //this directive uses jquery... | |
| angular.module('client').directive('readMore', function() { | |
| return { | |
| restrict: 'A', | |
| transclude: true, | |
| replace: true, | |
| template: '<p></p>', | |
| scope: { | |
| moreText: '@', | |
| lessText: '@', |
| 'use strict'; | |
| //http://jsfiddle.net/maztch/efccbja5/7/ | |
| angular.module('app') | |
| .directive('full', function($window) { | |
| return({ | |
| restrict: 'A', | |
| link: function ( $scope, element, attributes ) { |
| SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' ) | |
| AS statement FROM information_schema.tables | |
| WHERE table_name LIKE 'prefix_%'; |
| //just some emmet lines to test it | |
| //ul sample | |
| ul>li{Item $}*4 | |
| //page header sample | |
| #page>div.logo+ul#navigation>li*5>a{Item $} | |
| //navbar sample | |
| .navbar>ul>li*4>a[href=#]{link $} |
| Options +FollowSymLinks | |
| <ifModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} !index | |
| RewriteRule (.*) index.html [L] | |
| </ifModule> |
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| $ for f in *\ *; do mv "$f" "${f// /_}"; done |
| <?php | |
| //edit with your data | |
| $repo_dir = '~/repository.git'; | |
| $web_root_dir = '~/project'; | |
| $post_script = '~/project/scripts/post_deploy.sh'; | |
| $onbranch = 'master'; | |
| // A simple php script for deploy using bitbucket webhook | |
| // Remember to use the correct user:group permisions and ssh keys for apache user!! | |
| // Dirs used here must exists on server and have owner permisions to www-data |
Make an alias to sublime bin subl.
Edit file
~/.bash_profile
add
alias sublime="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
restart bash if needed
| # Git branch in prompt. | |
| # from http://mfitzp.io/article/add-git-branch-name-to-terminal-prompt-mac/ | |
| # add to ~/.bash_profile | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |