Last active
January 5, 2021 18:28
-
-
Save PedroGabriel/d7137617a3fd237a1404fb5c02012e66 to your computer and use it in GitHub Desktop.
.bashrc | .gitconfig | .zshrc
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
alias gitclear="git branch --merged develop | grep -v '^[ *]*develop$' | xargs git branch -d" | |
alias gitclearm="git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d" | |
export PS1='\[\033[01;32m\]➜ \[\033[01;36m\]\W\[\033[31m\]$(__git_ps1)\[\033[00m\] ' | |
function push() { | |
git add . | |
git commit -a -m "$1" | |
git push | |
} | |
alias unreal='./home/pedro/UnrealEngine/Engine/Binaries/Linux/UE4Editor' |
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
[alias] | |
cd = !git checkout develop | |
aa = !git add . | |
ac = !git add -A && git commit -m | |
cc = checkout | |
ccc = !git checkout -b | |
ll = log --all --graph --decorate --oneline --abbrev-commit | |
ss = status | |
bb = !git branch | cat | |
pp = pull | |
[push] | |
default = current |
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
export ZSH="/home/pedro/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
alias gitclear="git branch --merged develop | grep -v '^[ *]*develop$' | xargs git branch -d" | |
alias gitclearm="git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d" | |
function push() { | |
git add . | |
git commit -a -m "$1" | |
git push -u | |
} | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
alias studio='/usr/local/android-studio/bin/studio.sh | bash' | |
alias redisclear='redis-cli FLUSHALL' | |
alias redisweb='redis-web' | |
alias phpcp='php /home/pedro/phpcpd.phar' | |
alias unreal='cd /home/pedro/UnrealEngine/Engine/Binaries/Linux && ./UE4Editor -opengl4' | |
alias cobra='anaconda-navigator | bash' | |
export GEM_HOME=~/.ruby/ | |
export PATH="$PATH:~/.ruby/bin" | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH" | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/home/pedro/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/home/pedro/miniconda3/etc/profile.d/conda.sh" ]; then | |
. "/home/pedro/miniconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/home/pedro/miniconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
alias cobra='anaconda-navigator' | |
alias mcs='ssh -p 57349 -o ServerAliveInterval=10 root:@206.189.170.137' | |
#alias mc='java -jar ~/TLauncher-2.72.jar' | |
#alias mc='~/mc.sh' | |
function mc() { | |
nohup /home/pedro/mc.sh "$1" & | |
} | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" | |
alias vpn='echo '"'"'password'"'"' | snx' | |
alias vpnd='snx -d' | |
function down_services() { | |
sudo service apache2 stop | |
sudo service mysql stop | |
sudo service nginx stop | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
docker network rm $(docker network ls -q) | |
} | |
function work() { | |
vpn | |
down_services | |
cd ${2:-/home/pedro/www/}$1 | |
dcp | |
} | |
function worka() { | |
cd ${2:-/home/pedro/www/}$1 | |
dcp | |
} | |
function workd() { | |
down_services | |
vpnd | |
} | |
alias dcp='docker-compose up -d' | |
alias dcd='docker-compose down' | |
function dcr() { | |
docker-compose down | |
docker-compose up -d | |
} | |
function dcg() { | |
docker-compose run ${1:-app} bash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment