Skip to content

Instantly share code, notes, and snippets.

View nortikin's full-sized avatar
🌍
making 🙈 🙉 🙊

nikitron nortikin

🌍
making 🙈 🙉 🙊
View GitHub Profile
@nortikin
nortikin / .bashrc
Created May 4, 2020 22:53 — forked from artemsites/.bashrc
.bashrc aliases collection
# 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"
# 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
}