mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
Merge c0d30df0ce into 686e460258
This commit is contained in:
commit
a986a5d0b0
4 changed files with 162 additions and 1 deletions
73
.bash_profile
Normal file
73
.bash_profile
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# call .bashrc file
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
##
|
||||
export DYLD_LIBRARY_PATH=/usr/lib/:$DYLD_LIBRARY_PATH
|
||||
# MacPorts Installer addition on 2014-03-23_at_23:01:41: adding an appropriate PATH variable for use with MacPorts.
|
||||
export PATH=/usr/local/bin:PATH:/opt/local/bin:/opt/local/sbin:$PATH
|
||||
GRADLE_HOME=/Users/sli/Documents/gradle-2.0
|
||||
export PATH=$PATH:$GRADLE_HOME/bin
|
||||
# Finished adapting your PATH environment variable for use with MacPorts.
|
||||
|
||||
# change prompt display style
|
||||
|
||||
# grep
|
||||
alias grep='grep --color=always'
|
||||
|
||||
# so that git log could support Chinese
|
||||
export LESSCHARSET=utf-8
|
||||
|
||||
# system alias tweek
|
||||
# alias agi='sudo apt-get install'
|
||||
alias vim="/Applications/MacVim.app/Contents/MacOS/vim"
|
||||
alias l="ls -l"
|
||||
alias ll="ls -al"
|
||||
alias ls="ls -lart"
|
||||
alias c="clear"
|
||||
alias cl="clear"
|
||||
|
||||
alias d="cd ~/Desktop"
|
||||
alias wr="cd ~/Dropbox/UTK/Papers"
|
||||
alias p="cd ~/Dropbox/Projects/mousepotato.github.io/_posts/"
|
||||
alias na="cd ~/Dropbox/Projects/narcissus/"
|
||||
alias aq="cd ~/Dropbox/Projects/Aqoin_project/sli-whs/"
|
||||
alias di="cd ~/Dropbox/UTK/Papers/dissertation/"
|
||||
|
||||
alias e="exit"
|
||||
alias eb='vim ~/.bash_profile'
|
||||
alias sb='source $HOME/.bash_profile 1>/dev/null'
|
||||
alias clear='printf "\ec"' #clear terminal and empty scrollback
|
||||
alias myip='curl ifconfig\.me/ip'
|
||||
alias ssh11='ssh sli22@hydra11.eecs.utk.edu'
|
||||
alias sshaq='ssh -p 8822 root@fhs.im'
|
||||
|
||||
alias gc="git clone"
|
||||
alias gpm="git push origin master"
|
||||
alias ga="git add ."
|
||||
alias gs="git status"
|
||||
# use function to pass argument for git commit -m
|
||||
alias gm="git commit -m $1"
|
||||
function gm(){
|
||||
git commit -m $1;
|
||||
}
|
||||
|
||||
# for jekyll
|
||||
|
||||
alias jb="jekyll build"
|
||||
alias js="jekyll server"
|
||||
|
||||
# start mongoDB
|
||||
|
||||
alias mos="mongod --dbpath ~/Documents/mongoDB/data"
|
||||
alias mg="mongo"
|
||||
|
||||
|
||||
# for gradle
|
||||
alias gb='gradle build'
|
||||
alias ge='gradle eclipse'
|
||||
|
||||
alias vrc="vim ~/.dotfiles/vim/vim_runtime/my_configs.vim"
|
||||
|
||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||
85
.zshrc
Normal file
85
.zshrc
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
source ~/.bash_profile
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
# show sys. info
|
||||
# brew install archey
|
||||
archey -c
|
||||
|
||||
# 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="robbyrussell"
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="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 custom 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=(git)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
export PATH="/Users/sli/.rvm/gems/ruby-2.1.0/bin:/Users/sli/.rvm/gems/ruby-2.1.0@global/bin:/Users/sli/.rvm/rubies/ruby-2.1.0/bin:/Users/sli/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/Users/sli/.rvm/bin"
|
||||
# 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/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"
|
||||
|
|
@ -111,3 +111,6 @@ else
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
source ~/.bash_profile
|
||||
source ~/.bash_rc
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
|
||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%2d %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}> '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue