This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set aliases | |
. ~/.bash_aliases | |
new-alias() { | |
local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //') | |
echo alias $1="'""$last_command""'" >> ~/.bash_aliases | |
. ~/.bash_aliases | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo gedit ~/.bashrc | |
alias subl="subl3" | |
alias st="subl3" | |
alias lampp="sudo /opt/lampp/lampp start" | |
alias lampp-start="sudo /opt/lampp/lampp start" | |
alias lampp-stop="sudo /opt/lampp/lampp stop" | |
alias lampp-status="sudo /opt/lampp/lampp status" | |
alias lampp-restart="sudo /opt/lampp/lampp restart" | |
alias start="sudo pppoe-start" | |
alias restart="pppoe-restart" |