Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
meishi125478
ohmyzsh
提交
7c279856
O
ohmyzsh
项目概览
meishi125478
/
ohmyzsh
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
ohmyzsh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7c279856
编写于
6月 10, 2010
作者:
R
Robby Russell
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
上级
7f350da5
b26ff059
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
47 addition
and
15 deletion
+47
-15
README.textile
README.textile
+10
-14
lib/aliases.zsh
lib/aliases.zsh
+1
-1
lib/correction.zsh
lib/correction.zsh
+2
-0
lib/history.zsh
lib/history.zsh
+1
-0
plugins/mysql-macports.plugin.zsh
plugins/mysql-macports.plugin.zsh
+6
-0
themes/takashiyoshida.zsh-theme
themes/takashiyoshida.zsh-theme
+27
-0
未找到文件。
README.textile
浏览文件 @
7c279856
...
...
@@ -4,6 +4,8 @@ bq. "OH MY ZSHELL!"
h2. Setup
@oh-my-zsh@ should work with any recent release of "zsh":http://www.zsh.org/, the minimum recommended version is 4.3.9.
h3. The automatic installer... (do you trust me?)
@wget http://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
...
...
@@ -25,22 +27,19 @@ h3. The manual way
@chsh -s /bin/zsh@
4. Start / restart zsh (open a new terminal is easy enough..)
4. Start / restart zsh (open a new terminal is easy enough..
.
)
h3. Problems?
You _might_ need to modify your PATH in ~/.zshrc if you're not able to find some commands after switching to
oh-my-zsh
.
You _might_ need to modify your PATH in ~/.zshrc if you're not able to find some commands after switching to
_Oh My Zsh_
.
h2. Usage
TODO: Update this..
* Rake autocomplete: @rake (tab)@. Will generate a cache of all your rake tasks and then let you auto-complete and/or select the task to run.
* ssh autocomplete: @ssh (tab)@ or @scp (tab)@
* Git branch, it'll tell you which branch you're in when you're in a git repository directory.
* enable the plugins you want in your @~/.zshrc@ (take a look at @plugins/@ to see what's possible)
** example: @plugins=(git osx ruby)@
* Theme support: Change the @ZSH_THEME@ environment variable in @~/.zshrc@.
** Take a look at the "current themes":http://wiki.github.com/robbyrussell/oh-my-zsh/themes that come bundled with
Oh My Zsh
.
* much much more..
** Take a look at the "current themes":http://wiki.github.com/robbyrussell/oh-my-zsh/themes that come bundled with
_Oh My Zsh_
.
* much much more..
. take a look at @lib/@ what _Oh My Zsh_ offers...
h2. Useful
...
...
@@ -49,6 +48,7 @@ the "refcard":http://www.bash2zsh.com/zsh_refcard/refcard.pdf is pretty tasty fo
h3. Customization
If you want to override any of the default behavior, just add a new file (ending in @.zsh@) into the @custom/@ directory.
If you have many functions which go good together you can put them as a *.plugin.zsh file in the @plugin/@ directory and then enable this plugin.
h3. Uninstalling
...
...
@@ -66,8 +66,4 @@ I'm far from being a zsh-expert and suspect there are many ways to improve. If y
h3. Send us your theme!
I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
h3. Todo from imajes:
* need to make the title bar support git folder
\ No newline at end of file
I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
\ No newline at end of file
lib/aliases.zsh
浏览文件 @
7c279856
...
...
@@ -18,7 +18,7 @@ alias history='fc -l 1'
# List direcory contents
alias
lsa
=
'ls -lah'
alias
l
=
'ls -la'
alias
ll
=
'ls -
alr
'
alias
ll
=
'ls -
l
'
alias
sl
=
ls
# often screw this up
alias
afind
=
'ack-grep -il'
lib/correction.zsh
浏览文件 @
7c279856
...
...
@@ -6,3 +6,5 @@ alias mysql='nocorrect mysql'
alias mkdir
=
'nocorrect mkdir'
alias
gist
=
'nocorrect gist'
alias
heroku
=
'nocorrect heroku'
alias
ebuild
=
'nocorrect ebuild'
alias
hpodder
=
'nocorrect hpodder'
lib/history.zsh
浏览文件 @
7c279856
...
...
@@ -10,6 +10,7 @@ setopt hist_verify
setopt inc_append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_space
setopt SHARE_HISTORY
setopt APPEND_HISTORY
plugins/mysql-macports.plugin.zsh
0 → 100644
浏览文件 @
7c279856
# commands to control local mysql-server installation
# paths are for osx installtion via macports
alias
mysqlstart
=
'sudo /opt/local/bin/mysqld_safe5'
alias
mysqlstop
=
'/opt/local/bin/mysqladmin5 -u root -p shutdown'
alias
mysqlstatus
=
'mysqladmin5 -u root -p ping'
\ No newline at end of file
themes/takashiyoshida.zsh-theme
0 → 100644
浏览文件 @
7c279856
#
# PROMPT
#
PROMPT_BRACKET_BEGIN='%{$fg_bold[white]%}['
PROMPT_HOST='%{$fg_bold[cyan]%}%m'
PROMPT_SEPARATOR='%{$reset_color%}:'
PROMPT_DIR='%{$fg_bold[yellow]%}%c'
PROMPT_BRACKET_END='%{$fg_bold[white]%}]'
PROMPT_USER='%{$fg_bold[white]%}%n'
PROMPT_SIGN='%{$reset_color%}%#'
GIT_PROMPT_INFO='$(git_prompt_info)'
# My current prompt looks like:
# [host:current_dir] (git_prompt_info)
# [username]%
PROMPT="${PROMPT_BRACKET_BEGIN}${PROMPT_HOST}${PROMPT_SEPARATOR}${PROMPT_DIR}${PROMPT_BRACKET_END}${GIT_PROMPT_INFO}
${PROMPT_BRACKET_BEGIN}${PROMPT_USER}${PROMPT_BRACKET_END}${PROMPT_SIGN} "
#
# Git repository
#
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
ZSH_THEME_GIT_PROMPT_CLEAN=''
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录