Skip to content

Instantly share code, notes, and snippets.

@nafiesl
Last active November 10, 2021 03:57
Show Gist options
  • Save nafiesl/8fcf66cf03b2f32299e458471343ca21 to your computer and use it in GitHub Desktop.
Save nafiesl/8fcf66cf03b2f32299e458471343ca21 to your computer and use it in GitHub Desktop.
My .bash_aliases
# Shortcuts
alias hisgrep='history | grep'
alias syslog='sudo tail -f /var/log/kern.log'
alias aliasopen='vim ~/.bash_aliases'
alias editweb='vim routes/web.php'
alias aliassource='source ~/.bash_aliases'
alias hostsopen='sudo vim /etc/hosts'
alias neth='sudo nethogs ppp0'
alias dial='sudo wvdial --config=wvdial.conf'
alias dialg='sudo wvdial --config=gwvdial.conf'
alias dialc='sudo wvdialconf'
alias pings='ping 8.8.8.8'
alias suge='sudo gedit'
alias sule='sudo leafpad'
# Laravel commands
alias art='./artisan'
alias routes='./artisan route:list'
alias lvchmod='sudo chmod 777 -R'
alias pings='ping 8.8.8.8'
# sudo apt
alias sagu='sudo apt update'
alias sagi='sudo apt install'
alias sagr='sudo apt remove'
alias sagup='sudo apt upgrade'
alias sacp='sudo apt-cache policy'
# Youtube-dl
alias ydlmp3='youtube-dl -f 140 --prefer-ffmpeg --extract-audio --audio-format mp3'
alias ydlmp4='youtube-dl -f 135+140'
alias ydlmp4360='youtube-dl -f 134+140'
alias ydlcheck='youtube-dl -F'
# PHPUnit
alias punit='vendor/bin/phpunit'
alias punitf='vendor/bin/phpunit --filter'
alias punits='vendor/bin/phpunit --stop-on-failure'
alias punitsf='vendor/bin/phpunit --stop-on-failure --filter'
alias wpunit='phpunit-watcher watch'
alias wpunits='phpunit-watcher watch --stop-on-failure'
alias wpunitf='phpunit-watcher watch --filter'
alias wpunitsf='phpunit-watcher watch --stop-on-failure --filter'
# GIT
alias gco='git checkout'
alias gcb='git checkout -b'
alias gcm='git checkout master'
alias gcd='git checkout develop'
alias gst='git status -s'
alias grh='git reset --hard'
alias glg='git log --oneline --all --graph --decorate'
alias gbr='git branch '
alias gnm='git branch --no-merged'
alias grv='git remote -v'
alias gitcleanup='git reset --hard && git clean -df'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment