Skip to content

Instantly share code, notes, and snippets.

@gustavocardoso
Created December 15, 2019 19:56
Show Gist options
  • Save gustavocardoso/d1f862f0372ca4819a60c2217989eca8 to your computer and use it in GitHub Desktop.
Save gustavocardoso/d1f862f0372ca4819a60c2217989eca8 to your computer and use it in GitHub Desktop.
Bash profile
export ANDROID_HOME=~/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/gus/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="ys"
ZSH_THEME="spaceship"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="false"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
mysql-colorize
zsh-syntax-highlighting
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias zs="code ~/.zshrc"
alias zsr="source ~/.zshrc"
alias home="cd ~/"
alias dev="cd ~/Development"
alias c="clear"
alias gp="openssl rand -base64 32"
alias unet="sudo QT_X11_NO_MITSHM=1 /usr/bin/unetbootin"
alias adb="$ANDROID_HOME/platform-tools/adb"
# Git aliases
alias gp="git pull origin $(git_current_branch)"
alias gps="git push origin $(git_current_branch)"
# Docker aliases
alias dockermysqlrun="docker run -p 3306:3306 --name=mysql1 -d mysql/mysql-server:8.0 --default-authentication-plugin=mysql_native_password"
alias dockermysqlexec="docker exec -it mysql1 mysql -uroot -p"
alias dockerphpadminrun="docker run --name myadmin -d --link mysql1:db -p 8080:80 phpmyadmin/phpmyadmin"
alias mdbip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mariadb"
# Set the JAVA_HOME path.
#export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64
# Set the CLASSPATH path.
#export CLASSPATH=/usr/share/java/mysql-connector-java.jar:.
# User specific aliases and functions
#. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
# Wrap sqlplus with rlwrap to edit prior lines with the
# up, down, left and right keys.
# sqlplus()
# {
# if [ "$RLWRAP" = "0" ]; then
# sqlplus "$@"
# else
# rlwrap sqlplus "$@"
# fi
# }
# Set the bindkey.
bindkey -v
bindkey "^R" history-incremental-search-backward
export EDITOR="vim"
# history stuff
HISTFILE=~/.zsh-histfile
HISTSIZE=2000
# Set vi as a command line editor.
set -o vi
export LOCAL_IP="ifdata -pa wlp3s0"
alias serve="browser-sync start -s -f . --no-notify --port 9000"
SPACESHIP_PROMPT_ORDER=(
#time # Time stamps section
user # Username section
host # Hostname section
dir # Current directory section
git # Git section (git_branch + git_status)
docker # Docker section
exec_time # Execution time
#line_sep # Line break
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL="🢒"
# SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
# SPACESHIP_TIME_SHOW=true
SPACESHIP_USER_SHOW=always
SPACESHIP_USER_PREFIX=""
SPACESHIP_HOST_SHOW=always
SPACESHIP_HOST_PREFIX="@ "
SPACESHIP_DIR_SHOW=true
SPACESHIP_DIR_TRUNC=0
SPACESHIP_DIR_TRUNC_REPO=false
SPACESHIP_PACKAGE_SHOW=false
SPACESHIP_NODE_SHOW=false
export ANDROID_HOME=~/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/gus/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="ys"
ZSH_THEME="spaceship"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="false"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
mysql-colorize
zsh-syntax-highlighting
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias zs="code ~/.zshrc"
alias zsr="source ~/.zshrc"
alias home="cd ~/"
alias dev="cd ~/Development"
alias c="clear"
alias gp="openssl rand -base64 32"
alias unet="sudo QT_X11_NO_MITSHM=1 /usr/bin/unetbootin"
alias adb="$ANDROID_HOME/platform-tools/adb"
# Git aliases
alias gp="git pull origin $(git_current_branch)"
alias gps="git push origin $(git_current_branch)"
# Docker aliases
alias dockermysqlrun="docker run -p 3306:3306 --name=mysql1 -d mysql/mysql-server:8.0 --default-authentication-plugin=mysql_native_password"
alias dockermysqlexec="docker exec -it mysql1 mysql -uroot -p"
alias dockerphpadminrun="docker run --name myadmin -d --link mysql1:db -p 8080:80 phpmyadmin/phpmyadmin"
alias mdbip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mariadb"
# Set the JAVA_HOME path.
#export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64
# Set the CLASSPATH path.
#export CLASSPATH=/usr/share/java/mysql-connector-java.jar:.
# User specific aliases and functions
#. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
# Wrap sqlplus with rlwrap to edit prior lines with the
# up, down, left and right keys.
# sqlplus()
# {
# if [ "$RLWRAP" = "0" ]; then
# sqlplus "$@"
# else
# rlwrap sqlplus "$@"
# fi
# }
# Set the bindkey.
bindkey -v
bindkey "^R" history-incremental-search-backward
export EDITOR="vim"
# history stuff
HISTFILE=~/.zsh-histfile
HISTSIZE=2000
# Set vi as a command line editor.
set -o vi
export LOCAL_IP="ifdata -pa wlp3s0"
alias serve="browser-sync start -s -f . --no-notify --port 9000"
SPACESHIP_PROMPT_ORDER=(
#time # Time stamps section
user # Username section
host # Hostname section
dir # Current directory section
git # Git section (git_branch + git_status)
docker # Docker section
exec_time # Execution time
#line_sep # Line break
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL="🢒"
# SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
# SPACESHIP_TIME_SHOW=true
SPACESHIP_USER_SHOW=always
SPACESHIP_USER_PREFIX=""
SPACESHIP_HOST_SHOW=always
SPACESHIP_HOST_PREFIX="@ "
SPACESHIP_DIR_SHOW=true
SPACESHIP_DIR_TRUNC=0
SPACESHIP_DIR_TRUNC_REPO=false
SPACESHIP_PACKAGE_SHOW=false
SPACESHIP_NODE_SHOW=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment