-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.zsh
34 lines (26 loc) · 1.17 KB
/
aliases.zsh
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
27
28
29
30
31
32
33
34
# alias yourcommand='echo phrase && command' echoes a message when you run a certain command
alias desk='cd ~/Desktop'
alias dl='cd ~/Downloads'
alias csci='cd ~/Desktop/College/CSCI/'
alias play='afplay'
alias sauron='ls -a'
alias ..='cd ..'
alias ...= 'cd ../..'
# Programs
alias matrix='cmatrix'
alias js='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc' # JavaScript environment inside terminal
alias mate='/Applications/TextMate.app/Contents/Resources/mate' # TextMate
alias matlab='/Applications/MATLAB_R2012b.app/bin/matlab' # Open Matlab GUI
alias matlabt='matlab -nodesktop -nosplash' # Starts Matlab inside terminal with no spash screen
alias emacs='open -a /Applications/Emacs.app $1'
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' # Sublime Text 3
alias gcc='gcc -Wall -o'
# Git
alias repo='octogit create' # Creates repo: http://github.com/myusuf3/octogit
alias add='git add'
alias commit='git commit -m'
alias push='git push origin master'
alias vedit='mvim ~/.vimrc'
# Apache
alias apacherestart='sudo apachectl -k graceful'
EDITOR=/usr/bin/vim