Created
February 18, 2017 16:15
-
-
Save x13945/eb9de1d4dbc27c5f34b22d36e871a67a to your computer and use it in GitHub Desktop.
Ubuntu16.04LTS zshrc
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="3den" | |
# 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="true" | |
# 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. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another | |
folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (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=(bookmark z gradle adb ubuntu) | |
# User configuration | |
export PATH="/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:" | |
# Custom Path | |
source $HOME/software/config/custom_path.sh | |
source $ZSH/oh-my-zsh.sh | |
source $HOME/bin/initmipmap.sh | |
#source $HOME/software/config/bash_apparix | |
# 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/dsa_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 gopen="gnome-open" | |
alias nb="ndk-build" | |
alias xo='xdg-open' | |
alias gst='git status' | |
alias ga='git add' | |
alias gb='git branch' | |
alias gc='git commit' | |
alias gd='git diff' | |
alias gco='git checkout' | |
alias glogs="git log --abbrev-commit --graph --pretty=format:'%h -%an,%ar:%s'" | |
alias sst='svn status' | |
alias sc='svn commit' | |
alias sd='svn diff' | |
#alias s="screen" | |
alias n="nautilus --no-desktop" | |
alias javac="javac -J-Dfile.encoding=utf8" | |
alias grep="grep --color=auto" | |
alias nautilus="nautilus --no-desktop" | |
alias p="proxychains" | |
alias -- -="cd -" | |
alias ..='cd ..' | |
alias ...='cd ../../' | |
alias .3='cd ../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../../' | |
.0() { | |
cd "$(git rev-parse --show-toplevel)" | |
} | |
alias -s html=chromium-browser # 在命令行直接输入后缀为 html 的文件名,会在浏览器中打开 | |
alias -s rb=vi # 在命令行直接输入 ruby 文件,会在 Vim 中打开 | |
#alias -s py=vi # 在命令行直接输入 python 文件,会用 vim 中打开,以下类似 | |
alias -s js=vi | |
alias -s c=vi | |
alias -s cpp=vi | |
alias -s java=vi | |
alias -s txt=vi | |
alias -s gz='tar -xzvf' | |
alias -s tgz='tar -xzvf' | |
alias -s zip='unzip' | |
alias -s bz2='tar -xjvf' | |
alias -s md=subl | |
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
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
######################################################################### | |
# File Name: custom_path.sh | |
# Author: Liu Xiao | |
# mail: x13945@163.com | |
# Created Time: Fri 06 Jan 2017 02:47:35 PM CST | |
######################################################################### | |
export PATH=${PATH}:$HOME/bin | |
export GRADLE_USER_HOME=/mnt/workspace/Cache/.gradle | |
export GRADLE_HOME=$HOME/software/gradle-3.3 | |
export PATH=${PATH}:$GRADLE_HOME/bin | |
export ANT_HOME=$HOME/software/apache-ant-1.9.5 | |
export PATH=${PATH}:$ANT_HOME/bin:$ANT_HOME/lib | |
export TOMCAT_HOME=$HOME/software/apache-tomcat-7.0.63 | |
export PATH=${PATH}:$TOMCAT_HOME/bin:$ANT_HOME/lib | |
export ANDROID_SDK_HOME=$HOME/software/adt-bundle-linux-x86_64-20140702/sdk | |
export PATH=${PATH}:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/build-tools/22.0.1 | |
export ANDROID_HOME=$ANDROID_SDK_HOME | |
export ANDROID_SDK=$ANDROID_SDK_HOME | |
export ANDROID_NDK_HOME=$HOME/software/adt-bundle-linux-x86_64-20140702/sdk/ndk-bundle | |
export PATH=${PATH}:$ANDROID_NDK_HOME | |
export ANDROID_NDK=$ANDROID_NDK_HOME | |
export MAVEN_HOME=$HOME/software/apache-maven-3.3.9 | |
export PATH=${PATH}:$MAVEN_HOME/bin | |
export GENYMOTION_HOME=$HOME/software/genymotion | |
export PATH=${PATH}:$GENYMOTION_HOME | |
export LOCAL_BIN_HOME=$HOME/bin | |
export PATH=${PATH}:$LOCAL_BIN_HOME/bxinwen | |
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/' | |
# java | |
#export JAVA_HOME=/home/xiao/jdk1.7.0_25 | |
#export JAVA_HOME=/home/xiao/jdk1.8.0_60 | |
#export JRE_HOME=$JAVA_HOME/jre | |
#export PATH=${PATH}:$JAVA_HOME/bin:$JAVA_HOME/lib:$JRE_HOME/lib:$JRE_HOME/bin | |
# export MANPATH="/usr/local/man:$MANPATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment