-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_alias
67 lines (54 loc) · 2.1 KB
/
.bash_alias
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Xampp Shortcuts
#-------------------------------------------------
#export LAMPP='/opt/lampp'
#alias php='$LAMPP/bin/php'
#alias xampp="sudo $LAMPP/lampp"
#alias xampp.conf="sudo $EDITOR $LAMPP/etc/httpd.conf"
#alias xampp.custom="sudo $EDITOR $LAMPP/etc/extra/httpd-custom.conf"
#alias xampp.hosts="pushd /opt/lampp/etc/extra/hosts"
#alias xampp.restart="sudo $LAMPP/lampp restart"
#alias xampp.start="sudo $LAMPP/lampp start"
#alias xampp.stop="sudo $LAMPP/lampp stop"
#alias mysql='$LAMPP/bin/mysql'
#alias mysqladmin='$LAMPP/bin/mysqladmin'
#alias mysqldump='$LAMPP/bin/mysqldump'
#export DRUSH='~/.drush/'
# Apache2 Shortcuts
#-------------------------------------------------
alias apache="sudo /etc/init.d/apache2"
alias a2="sudo /etc/init.d/apache2"
alias a2sa="pushd /etc/apache2/sites-available/"
alias a2sd="pushd /etc/apache2/sites-disabled/"
# Tail Logs
alias a2log="tail /var/log/apache2/error.log"
alias a2alog="tail /var/log/apache2/access.log"
# Clear log
alias a2clearlog='echo "" | sudo tee /var/log/apache2/error.log'
alias a2clearalog='echo "" | sudo tee /var/log/apache2/access.log'
# Apachectl
alias a2c='apachectl'
alias a2ctl='apachectl'
alias a2cdb='apachectl -S'
# Application Shortcuts
#-------------------------------------------------
# alias aptana="/opt/AptanaStudio3/AptanaStudio3"
# Ubuntu Shortcuts
#-------------------------------------------------
# alias update="sudo aptitude update"
# alias install="sudo aptitude install"
# alias upgrade="sudo aptitude safe-upgrade"
# alias remove="sudo aptitude remove"
# Display memory usage:
# ps aux | awk '{print $3"\t"$6"\t"$11;sum+=$6;cpu+=$3} END {print "Total RSS", sum, "\nTotal CPU", cpu}'
# Drush Shortcuts
#------------------------------------------------
if [ -f "/home/$USER/.drush/drush/drushrc.php" ]; then
alias drushrc="sudo $EDITOR /home/$USER/.drush/drush/drushrc.php"
fi
# Node.js Shortcuts
#------------------------------------------------
alias e='ember'
# GitHub
#------------------------------------------------
# See https://help.github.com/articles/error-key-already-in-use/
alias ghauth='ssh -T -ai ~/.ssh/id_rsa git@github.com'