mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge 934e127a0f into d05b2010ff
This commit is contained in:
commit
c9b7cb0fab
7 changed files with 17 additions and 4 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/thenickperson/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/thenickperson/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/thenickperson/oh-my-zsh.git ~/.oh-my-zsh@
|
||||
|
||||
2. Create a new zsh config by copying the zsh template we've provided.
|
||||
|
||||
|
|
|
|||
0
oh-my-zsh.sh
Normal file → Executable file
0
oh-my-zsh.sh
Normal file → Executable file
13
themes/simplyblue.zsh-theme
Normal file
13
themes/simplyblue.zsh-theme
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
PROMPT='$(ssh_connection)%{$fg_bold[blue]%}%~ $(git_prompt_info)%{$fg_bold[yellow]%}➜ %{$reset_color%}'
|
||||
RPROMPT='%{$fg_bold[blue]%}%T%{$reset_color%}'
|
||||
|
||||
function ssh_connection() {
|
||||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
echo "%{$fg_bold[red]%}$(hostname) "
|
||||
fi
|
||||
}
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[cyan]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|
||||
0
tools/check_for_upgrade.sh
Normal file → Executable file
0
tools/check_for_upgrade.sh
Normal file → Executable file
|
|
@ -5,7 +5,7 @@ then
|
|||
fi
|
||||
|
||||
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
|
||||
hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh || {
|
||||
hash git >/dev/null && /usr/bin/env git clone https://github.com/thenickperson/oh-my-zsh.git ~/.oh-my-zsh || {
|
||||
echo "git not installed"
|
||||
exit
|
||||
}
|
||||
|
|
|
|||
0
tools/uninstall.sh
Normal file → Executable file
0
tools/uninstall.sh
Normal file → Executable file
0
tools/upgrade.sh
Normal file → Executable file
0
tools/upgrade.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue