d22b253ce2bd69d908f0c2fce75c5d9ab09edda3
- Author
- Roman Kamyk <roman.kamyk@gmail.com>
- Committer
- Roman Kamyk <roman.kamyk@gmail.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/themes/rkj-repos.zsh-theme b/themes/rkj-repos.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..318c315bbbf9c3f2e3fecfbbe16b201b543e0ece
4--- /dev/null
5+++ b/themes/rkj-repos.zsh-theme
6@@ -0,0 +1,29 @@
7+# user, host, full path, and time/date
8+# on two lines for easier vgrepping
9+# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
10+
11+function hg_prompt_info {
12+ hg prompt --angle-brackets "\
13+<hg:%{$fg[magenta]%}<branch>%{$reset_color%}>\
14+</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
15+%{$fg[red]%}<status|modified|unknown><update>%{$reset_color%}<
16+patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
17+}
18+
19+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}+"
20+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}✱"
21+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✗"
22+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}➦"
23+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}✂"
24+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%}✈"
25+
26+function mygit() {
27+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return
28+ echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$( git_prompt_status )%{$reset_color%}$ZSH_THEME_GIT_PROMPT_SUFFIX"
29+}
30+
31+# alternate prompt with git & hg
32diff --git a/themes/rkj.zsh-theme b/themes/rkj.zsh-theme
33index 4b49a2a09516be79c3d1e8eb3a77582677848d4d..81b701e07d4a6b0a15577ae3dc6a2ae9a6846d52 100644
34--- a/themes/rkj.zsh-theme
35+++ b/themes/rkj.zsh-theme
36@@ -2,30 +2,7 @@
37 # on two lines for easier vgrepping
38 # entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
39
40-function hg_prompt_info {
41- hg prompt --angle-brackets "\
42-<hg:%{$fg[magenta]%}<branch>%{$reset_color%}>\
43-</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
44-%{$fg[red]%}<status|modified|unknown><update>%{$reset_color%}<
45-patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
46-}
47-
48-ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}+"
49-ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}✱"
50-ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✗"
51-ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}➦"
52-ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}✂"
53-ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%}✈"
54-
55-function mygit() {
56- ref=$(git symbolic-ref HEAD 2> /dev/null) || return
57- echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$( git_prompt_status )%{$reset_color%}$ZSH_THEME_GIT_PROMPT_SUFFIX"
58-}
59-