{"id":146,"date":"2013-03-18T19:58:42","date_gmt":"2013-03-18T19:58:42","guid":{"rendered":"http:\/\/www.webninjataylor.com\/library\/?p=146"},"modified":"2015-03-28T21:05:03","modified_gmt":"2015-03-28T21:05:03","slug":"terminal-aliases","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/terminal-aliases\/","title":{"rendered":"Terminal Aliases"},"content":{"rendered":"<p>Creating a new alias (shortcut) in Terminal&#8230;<\/p>\n<ol>\n<li>Edit profile\n<pre>vim ~\/.bash_profile<\/pre>\n<\/li>\n<li>Create alias\n<pre>alias mynewalias='does this; and this'<\/pre>\n<li>Control+o (or esc) &#8230; :wq<\/li>\n<\/li>\n<li>Save profile\n<pre>source ~\/.bash_profile<\/pre>\n<\/li>\n<\/ol>\n<p>My list of aliases&#8230;<\/p>\n<pre>alias aliasnew='vim ~\/.bash_profile'\r\nalias aliassave='source ~\/.bash_profile'\r\nalias an='vim ~\/.bashrc'\r\nalias as='source ~\/.bashrc'\r\nalias checkcss='.\/scripts\/verify_css.sh'\r\nalias clear='pip install -i http:\/\/23.20.194.155\/simple -r setup\/requirements.txt; source virtualenvwrapper.sh'\r\nalias css='r.js -o relux\/static\/js\/build.css-config.js; r.js -o relux\/static\/js\/build.sports-css-config.js; r.js -o relux\/static\/js\/build.weather-css-config.js'\r\nalias fd='fab deploy'\r\nalias fresh='git checkout develop; git pull origin develop; git fetch'\r\nalias ga='git add .; git commit'\r\nalias gb='git branch'\r\nalias gbd='git branch -D'\r\nalias gbds='git branch --merged | grep -v \\* | xargs git branch -D'\r\nalias gc='git checkout'\r\nalias gcb='git checkout -b'\r\nalias gcm='git checkout master'\r\nalias gf='git fetch'\r\nalias gff='git hf feature finish'\r\nalias gfp='git hf feature push'\r\nalias gfs='git hf feature start'\r\nalias gmd='git merge develop'\r\nalias gmm='git merge master'\r\nalias go='sudo \/sbin\/route delete 207.97.227.239 10.0.1.1'\r\nalias gpo='git push origin'\r\nalias gpom='git pull origin master'\r\nalias gr='sudo \/sbin\/route add 207.97.227.239 10.0.1.1'\r\nalias gs='git status'\r\nalias js='r.js -o relux\/static\/js\/build.config.js'\r\nalias local='cd ~\/django-relux'\r\nalias off='deactivate'\r\nalias on='workon relux; django-admin.py runserver 0.0.0.0:8000'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creating a new alias (shortcut) in Terminal&#8230; Edit profile vim ~\/.bash_profile Create alias alias mynewalias=&#8217;does this; and this&#8217; Control+o (or esc) &#8230; :wq Save profile source ~\/.bash_profile My list of aliases&#8230; alias aliasnew=&#8217;vim ~\/.bash_profile&#8217; alias aliassave=&#8217;source ~\/.bash_profile&#8217; alias an=&#8217;vim ~\/.bashrc&#8217; alias as=&#8217;source ~\/.bashrc&#8217; alias checkcss=&#8217;.\/scripts\/verify_css.sh&#8217; alias clear=&#8217;pip install -i http:\/\/23.20.194.155\/simple -r setup\/requirements.txt; source virtualenvwrapper.sh&#8217; alias [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[2,22],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-git","tag-terminal"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":6,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":3603,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/146\/revisions\/3603"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}