mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge 952aed5122 into 3913106b2e
This commit is contained in:
commit
854590f7cc
3 changed files with 12 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,7 +1,6 @@
|
||||||
locals.zsh
|
locals.zsh
|
||||||
log/.zsh_history
|
log/.zsh_history
|
||||||
projects.zsh
|
projects.zsh
|
||||||
custom
|
|
||||||
!custom/plugins/example
|
!custom/plugins/example
|
||||||
!custom/example.zsh
|
!custom/example.zsh
|
||||||
*.swp
|
*.swp
|
||||||
|
|
|
||||||
9
custom/plugins/tv/tv.plugin.zsh
Normal file
9
custom/plugins/tv/tv.plugin.zsh
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
c() { cd /var/www/$1; }
|
||||||
|
|
||||||
|
_c() { _files -W /var/www -/; }
|
||||||
|
compdef _c c
|
||||||
|
|
||||||
|
creport() { cd /var/www/yoolk_report; }
|
||||||
|
cportal() { cd /var/www/yoolk_portal; }
|
||||||
|
ccore() { cd /var/www/yoolk_report/yoolk_core; }
|
||||||
|
sql() { mysql -uroot -p; }
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code='%(?..%{$fg[red]%}%? ↵%{$reset_color%})'
|
||||||
|
local date_time='%{$fg[yellow]%}%D %T$terminfo[bold]$fg[blue]%} #%{$fg[white]%}%{$reset_color%}'
|
||||||
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
|
||||||
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
|
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
|
||||||
local rvm_ruby=''
|
local rvm_ruby=''
|
||||||
|
|
@ -13,7 +13,7 @@ else
|
||||||
fi
|
fi
|
||||||
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
PROMPT="╭─${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
|
PROMPT="╭─ ${date_time} ${user_host} ${current_dir} ${rvm_ruby} ${git_branch}
|
||||||
╰─%B$%b "
|
╰─%B$%b "
|
||||||
RPS1="${return_code}"
|
RPS1="${return_code}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue