Created
June 3, 2019 06:28
-
-
Save diegotf30/d02e7fafb6980153ad289858881cda95 to your computer and use it in GitHub Desktop.
Fedora Bash Aliases n stuff
This file contains hidden or 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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= | |
# User specific aliases and functions | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
export rvmsudo_secure_path=1 | |
export QMAKE="/usr/bin/qt-qmake4" | |
# System Shortcuts | |
alias cls=clear | |
alias mp="cd ~/moneypool/" | |
alias desk="cd ~/Desktop/" | |
alias down="cd ~/Downloads/" | |
alias dl="down" | |
alias docs="cd ~/Documents/" | |
alias aec="cd ~/AEC/" | |
## | |
alias vs="code" | |
alias vscode="code" | |
alias subl="code" | |
# Git Utils | |
alias mt="git checkout master" | |
alias diff="git diff origin/master" | |
alias st="git status" | |
alias branch="git log --all --decorate --oneline --graph" #Pretty branch display | |
alias br="branch" | |
alias r-br="git fetch > /dev/null && watch -n5 --color git log --all --decorate --oneline --graph --color=always" #Pretty branch auto-updating every 5s | |
alias r-st="watch -n5 --color git status" | |
alias curr="git symbolic-ref HEAD --short" #Current branch name | |
# Git actions | |
##Commits | |
alias add="git add . && git status" | |
alias amend="git commit --amend --no-edit" | |
alias fpush="git push origin \$(git symbolic-ref HEAD --short) --force" # Force push on curr-branch | |
alias stash="git stash" | |
alias commit="git commit" | |
##Branch mgmt | |
alias pull="git pull" | |
alias chk="git checkout" | |
alias reset="git reset HEAD" | |
alias hreset="git reset --hard @{u}" | |
# Linux utils | |
alias start="xdg-open" | |
alias full-access="sudo chmod -R 666" | |
# Rails server utils | |
alias fore="rvmsudo foreman start" | |
alias ngrok="ngrok http 5000" | |
alias free-tcp="sudo fuser -k 5000/tcp" | |
# Rails sudo commands (w/ ruby version mgmt) | |
alias rspec="rvmsudo xvfb-run rspec" | |
alias rails="rvmsudo rails" | |
alias bundle="rvmsudo bundle" | |
# Kali | |
alias tools="cd /opt/metasploit-framework/embedded/framework/tools/exploit" | |
alias sqlmap="python /opt/sqlmap-dev/sqlmap.py" | |
alias burp="/opt/BurpSuiteCommunity/BurpSuiteCommunity" | |
alias fluxion="sudo /opt/fluxion/fluxion.sh" | |
alias dirb="cd /opt/dirb && ./dirb.sh" | |
alias joomscan="perl /opt/joomscan/joomscan.pl" | |
alias joom="joomscan" | |
alias wordpress="wpscan" | |
alias scan="nikto -h" | |
alias wifite="sudo wifite" | |
alias wifijammer="sudo /opt/wifijammer/wifijammer" | |
alias spam-wifi="function __spam-wifi() { eval 'sudo airmon-ng start wlp8s0 && sudo mdk3 wlp8s0mon b -f $1' ; unset -f __spam-wifi; }; __spam-wifi" | |
# Kali Utils | |
alias restart-wifi="sudo systemctl restart NetworkManager" | |
alias reset-airmon="sudo airmon-ng stop wlp8s0mon" | |
alias reset-wifi="reset-airmon" | |
alias perl-install=$'function __perl-install() { eval "sudo dnf install \'perl($1)\'" ; unset -f __perl-install; }; __perl-install' | |
alias cpanm="perl-install" | |
# added by Anaconda3 installer | |
export PATH="/home/dtrevino/anaconda3/bin:$PATH" | |
docs | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= | |
# User specific aliases and functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment