Last active
August 27, 2021 15:10
-
-
Save maka-io/49460dca13796b8c654b7639436c8f48 to your computer and use it in GitHub Desktop.
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
source ~/.bashrc | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export PATH=$PATH:. | |
# export PATH=$PATH:/usr/bin | |
export PATH=$PATH:/opt/metasploit-framework/bin | |
export PATH=$PATH:/usr/local/sbin | |
#export WINEARCH=win32 | |
export TEST_MODE=true | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export MYSQL_HOME=/usr/local/mysql | |
alias mysql-start='sudo $MYSQL_HOME/bin/mysqld_safe &' | |
alias mysql-stop='sudo $MYSQL_HOME/bin/mysqladmin shutdown' | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Grep | |
alias grep='grep --exclude-dir={node_modules,.meteor,dist} --exclude=/*.class $' | |
# Bash | |
alias ls='ls -laghFG' | |
alias ll='ls -laghFG' | |
alias l='ls -laghFG' | |
alias cd..='cd ..' | |
title() { | |
echo -n -e "\033]0;$1\007" | |
} | |
alias ff='find . -name $1' | |
alias psql-stop='pg_ctl -D /usr/local/var/postgres stop -s -m fast' | |
alias psql-start='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' | |
alias docker-nuke='docker rm -v $(docker ps -a -q) --force' | |
# Git | |
git config --global color.ui true | |
git config --global format.pretty oneline | |
git config --global core.autocrl input | |
git config --global core.fileMode true | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias push='git pull origin master && git push origin master' | |
alias pull='git pull origin master' | |
alias clone='git clone $1' | |
# Ruby Version Manager | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
_fab_completion() { | |
COMPREPLY=() | |
# Fab in the path? | |
/usr/bin/which -s fab || return 0 | |
# Fabfile in this folder? | |
[[ -e fabfile.py ]] || return 0 | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
tasks=$(fab --shortlist) | |
COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) ) | |
} | |
complete -F _fab_completion fab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment