From 9ee70ab296f0b59c7813a3b38f50b19383104d91 Mon Sep 17 00:00:00 2001 From: Vibol T Date: Tue, 24 Jun 2014 12:01:24 +0700 Subject: [PATCH 1/3] Customize bira.zsh-theme --- themes/bira.zsh-theme | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme index 215720477..aa666f776 100644 --- a/themes/bira.zsh-theme +++ b/themes/bira.zsh-theme @@ -1,6 +1,6 @@ # 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 current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}' local rvm_ruby='' @@ -13,7 +13,7 @@ else fi 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 " RPS1="${return_code}" From 6179f435ac7e610fb389d8fcebf44ba8f971e6ad Mon Sep 17 00:00:00 2001 From: tvcam Date: Tue, 24 Jun 2014 12:49:00 +0700 Subject: [PATCH 2/3] track file in custom --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8fa66f02f..3347c18ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ locals.zsh log/.zsh_history projects.zsh -custom !custom/plugins/example !custom/example.zsh *.swp From 952aed51228031c8f865047806cdbd4ab8799f88 Mon Sep 17 00:00:00 2001 From: tvcam Date: Tue, 24 Jun 2014 12:49:29 +0700 Subject: [PATCH 3/3] add custom plugin --- custom/plugins/tv/tv.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 custom/plugins/tv/tv.plugin.zsh diff --git a/custom/plugins/tv/tv.plugin.zsh b/custom/plugins/tv/tv.plugin.zsh new file mode 100644 index 000000000..12583200e --- /dev/null +++ b/custom/plugins/tv/tv.plugin.zsh @@ -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; } \ No newline at end of file