Last active
January 28, 2020 17:44
-
-
Save marweck/dce6a12ad30cd4a7501f63eb74c2a745 to your computer and use it in GitHub Desktop.
My .bash_profile or .bashrc
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
# bash_profile | |
############################################# | |
BLACK="\[\033[0;38m\]" | |
RED="\[\033[0;31m\]" | |
RED_BOLD="\[\033[01;31m\]" | |
BLUE="\[\033[01;34m\]" | |
GREEN="\[\033[0;32m\]" | |
export PS1="$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(__git_ps1)$BLACK ] " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
#Neovim true color support | |
export NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
#Neovim cursor shape support | |
export NVIM_TUI_ENABLE_CURSOR_SHAPE=1 | |
export GREP_OPTIONS="-n --color" | |
# enable control-s and control-q | |
stty -ixon | |
############################################# | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
export EDITOR=vi | |
# TensorFlow binary was not compiled to use: AVX2 FMA | |
export TF_CPP_MIN_LOG_LEVEL=2 | |
# atalhos do sistema | |
alias ls='ls -GFh' | |
alias cat='bat' | |
alias vi='vim' | |
alias md='mkdir' | |
alias pd='pushd' | |
alias po='popd' | |
alias findsvn='find . -not \( -name .svn -prune \) -type f -print' | |
alias ff='find . -not \( -name .svn -prune \) -type f -name' | |
alias fgr='find_and_grep' | |
alias ll='ls -l' | |
alias la='ls -a' | |
alias s='sublime' | |
alias pref='vi ~/.bash_profile' | |
alias reload='source ~/.bash_profile' | |
alias e='open .' | |
alias du='du -h -d 1 | sort' | |
alias selfupd='sudo port selfupdate; sudo port upgrade outdated' | |
alias sync='rsync -avzh --delete ' | |
# maven | |
alias mvgs='mvn generate-sources' | |
alias mvi='mvn source:jar install -Dmaven.test.skip=true' | |
alias mvp='mvn source:jar package -Dmaven.test.skip=true' | |
alias mvc='mvn clean' | |
alias mvcp='mvn clean source:jar package -Dmaven.test.skip=true -Dmaven.clean.failOnError' | |
alias mvpd='mvn source:jar package -Pdeploy -Dmaven.test.skip=true' | |
alias mvcpd='mvn clean source:jar package -Pdeploy -Dmaven.test.skip=true -Dmaven.clean.failOnError' | |
alias mvci='mvn clean source:jar install -Dmaven.test.skip=true -Dmaven.clean.failOnError' | |
alias mvco='mvn compile' | |
alias mvco='mvn clean compile' | |
alias mvtree='mvn dependency:tree' | |
alias mvres='mvn dependency:resolve' | |
alias mvt='mvn test -Dskip.tests=false' | |
alias mvvs='mvn versions:set -DgenerateBackupPoms=false' | |
alias mvfx='mvn jfx:native' | |
alias mvcs='mvn cobertura:cobertura sonar:sonar' | |
alias mvss='mvn sonar:sonar' | |
alias mvxx='mvn exec:exec' | |
alias mvxj='mvn exec:java' | |
# git | |
alias gs='git status' | |
alias gch='git checkout ' | |
alias gtundo='git checkout -- ' | |
alias gchm='git checkout master ' | |
alias gchnb='git checkout -b ' | |
alias gap='git add . --all ' | |
alias glog='git log --pretty=medium --graph ' | |
alias gcam='git commit -am ' | |
alias gcm='git commit -m ' | |
alias gup='git push origin head --tags ' | |
alias gdown='git pull ' | |
alias gra='git remote add origin ' | |
alias gme='git merge ' | |
alias gba='git rebase ' | |
alias gcl='git clone ' | |
alias gdf='git diff -r HEAD ' | |
# docker | |
alias dps='docker ps' | |
alias dst='docker stats' | |
alias dcls='docker container ls' | |
alias dnl='docker network ls' | |
alias diml='docker image list' | |
alias dimp='docker image prune' | |
alias dcup='docker-compose up -d' | |
alias dcdown='docker-compose down' | |
alias dxit='docker exec -it ' | |
# svn | |
alias sst='svn st' | |
alias sup='svn up' | |
alias sad='svn add --force .' | |
alias sco='svn commit' | |
find_and_grep() { | |
ff $1 | xargs grep -i -n -E $2 | |
} | |
# function to extract remote ssl certificates | |
get_cert() { | |
echo | openssl s_client -connect $1:443 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | |
} |
jeffersonbezerra
commented
Jun 13, 2019
via email
Conhecia não o time.
Vou apagar esse comando então.
*Jefferson Bezerra*
On Wed, Jun 12, 2019 at 5:23 PM Marcio Carvalho <[email protected]>
wrote:
… Ele não expande aliases.
Eu acho que o comando time já faz isso.
Já testou?
"Do or do not. There is no try." (Master Yoda)
=============================
Marcio Ribeiro de Carvalho
***@***.***
=============================
On Wed, Jun 12, 2019 at 3:45 PM Jefferson Bezerra <
***@***.***>
wrote:
> timeit () {
> SECONDS=0
> "${@:1}"
> duration=$SECONDS
> echo "$(($duration / 3600)) hours, $(($duration / 60)) minutes and
> $(($duration % 60)) seconds elapsed."
> }
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
https://gist.github.com/dce6a12ad30cd4a7501f63eb74c2a745?email_source=notifications&email_token=AAEIJQ7USY5J6KNSRHADMZDP2E743A5CNFSM4HXOUKZ2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAFTSAM#gistcomment-2941958
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAEIJQ55UIQTTTTGZJVD7G3P2E743ANCNFSM4HXOUKZQ
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/dce6a12ad30cd4a7501f63eb74c2a745?email_source=notifications&email_token=AAK6ZYVGL3UWMVA5VVEUHT3P2FLKHA5CNFSM4HXOUKZ2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAFTSFY#gistcomment-2942044>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK6ZYVDFFYYOTW4XMYWK4LP2FLKHANCNFSM4HXOUKZQ>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment