mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added more personalization.
This commit is contained in:
parent
63c637726e
commit
e12f239b2a
3 changed files with 73 additions and 5 deletions
|
|
@ -13,18 +13,18 @@ You can install this via the command line with either `curl` or `wget`.
|
|||
|
||||
h4. via `curl`
|
||||
|
||||
@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@
|
||||
@curl -L https://github.com/onedanshow/oh-my-zsh/raw/master/tools/install.sh | sh@
|
||||
|
||||
h4. via `wget`
|
||||
|
||||
@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
|
||||
@wget --no-check-certificate https://github.com/onedanshow/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
|
||||
|
||||
h3. The manual way
|
||||
|
||||
|
||||
1. Clone the repository
|
||||
|
||||
@git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
|
||||
@git clone git://github.com/onedanshow/oh-my-zsh.git ~/.oh-my-zsh@
|
||||
|
||||
2. Create a new zsh config by copying the zsh template we've provided.
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,76 @@ alias history='fc -l 1'
|
|||
# List direcory contents
|
||||
alias lsa='ls -lah'
|
||||
alias l='ls -la'
|
||||
alias ll='ls -l'
|
||||
#alias ll='ls -l'
|
||||
alias sl=ls # often screw this up
|
||||
|
||||
alias afind='ack-grep -il'
|
||||
|
||||
# DD: mine, or added from https://github.com/thoughtbot/dotfiles
|
||||
|
||||
# Folder aliases
|
||||
alias ls='ls -F'
|
||||
alias la='la -A'
|
||||
alias ll='ls -lA'
|
||||
alias ..='cd ..'
|
||||
alias ...='../..'
|
||||
alias path='echo -e ${PATH//:/\\\n}'
|
||||
|
||||
# Ruby aliases
|
||||
alias rss='ruby script/server'
|
||||
alias rssd='ruby script/server -u'
|
||||
alias rsc='ruby script/console'
|
||||
|
||||
# Gem/Rails aliases
|
||||
alias geml='gem list --local | more'
|
||||
alias geme='cd `rvm gemdir`/gems; ls'
|
||||
alias cap='bundle exec cap'
|
||||
alias rake='bundle exec rake'
|
||||
#alias migrate="rake db:migrate db:test:prepare"
|
||||
#alias remigrate="rake db:migrate && rake db:migrate:redo && rake db:schema:dump db:test:prepare"
|
||||
#alias remongrate="rake mongoid:migrate && rake mongoid:migrate:redo"
|
||||
|
||||
# Git aliases
|
||||
alias g="git"
|
||||
alias glog='git log --color'
|
||||
alias gd='git diff --color'
|
||||
alias gs='git status'
|
||||
alias gcom='git commit'
|
||||
alias gpu='git pull'
|
||||
alias gps='git push'
|
||||
alias gcm='git checkout master'
|
||||
alias gcp='git checkout production'
|
||||
alias gch='git checkout'
|
||||
alias gmm='git merge master'
|
||||
#alias gci="git pull --rebase && rake && git push"
|
||||
alias tlf="tail -f"
|
||||
|
||||
alias ln='ln -v'
|
||||
alias mkdir='mkdir -p'
|
||||
|
||||
alias -g G='| grep'
|
||||
alias -g M='| less'
|
||||
alias -g L='| wc -l'
|
||||
alias -g ONE="| awk '{ print \$1}'"
|
||||
|
||||
# git
|
||||
alias gci="git pull --rebase && rake && git push"
|
||||
|
||||
# Bundler
|
||||
alias b="bundle"
|
||||
alias be="bundle exec"
|
||||
alias bake="bundle exec rake"
|
||||
|
||||
# Tests and Specs
|
||||
alias t="ruby -I test"
|
||||
alias s="bundle exec rspec"
|
||||
alias cuc="bundle exec cucumber"
|
||||
|
||||
# Rubygems
|
||||
alias gi="gem install"
|
||||
alias giv="gem install -v"
|
||||
|
||||
# Network
|
||||
alias whats-my-ip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ ZSH_THEME="eastwood"
|
|||
# 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)
|
||||
plugins=(git)
|
||||
plugins=(git ssh-agent sublime)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue