From c34098af20cafdf016f68f3e7f612ed60ca93aa1 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 8 Mar 2015 23:38:06 -0400 Subject: [PATCH 01/22] Update copyright --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42c68532..e54a6319 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,8 @@ License (The MIT License) Copyright (c) 2009-2011 Robby Russell and contributors. -Copyright (c) 2011-2014 Sorin Ionescu and contributors. + +Copyright (c) 2011-2015 Sorin Ionescu and contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in From 4016f0c7c1a339cefbec016f968938a086a97ec4 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 1 Apr 2015 16:19:52 -0400 Subject: [PATCH 02/22] Update external completions --- modules/completion/external | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/completion/external b/modules/completion/external index ed964013..68c94947 160000 --- a/modules/completion/external +++ b/modules/completion/external @@ -1 +1 @@ -Subproject commit ed964013e290677c866a055e1c1ece6f33f64151 +Subproject commit 68c949470eaa87c5d67080d32fb2b69c8b837eb4 From ccca57f2ac65b4c20f6812af9a290d2e5b7f395b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 1 Apr 2015 16:20:17 -0400 Subject: [PATCH 03/22] Update external history-substring-search --- modules/history-substring-search/external | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/history-substring-search/external b/modules/history-substring-search/external index 9f9fc7d5..d0381d85 160000 --- a/modules/history-substring-search/external +++ b/modules/history-substring-search/external @@ -1 +1 @@ -Subproject commit 9f9fc7d550cc547737f4c686591cbbf07e7470b0 +Subproject commit d0381d859c0eb8d52a6211281e622e89153ef812 From ac8bc74ef0e5524308f0b3af1bc42784bddd4a06 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 1 Apr 2015 16:21:07 -0400 Subject: [PATCH 04/22] Update pure theme --- modules/prompt/external/pure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/external/pure b/modules/prompt/external/pure index e5a55c54..ef132990 160000 --- a/modules/prompt/external/pure +++ b/modules/prompt/external/pure @@ -1 +1 @@ -Subproject commit e5a55c5469b82da5bd9a9e42b144cef7cec8915b +Subproject commit ef1329909a3c72bb76765ccc519214ce60cedddb From c98da90662a11e7ac1e046ccd6a99edd21e68312 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 7 Apr 2015 19:24:44 -0400 Subject: [PATCH 05/22] Update external history-substring-search --- modules/history-substring-search/external | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/history-substring-search/external b/modules/history-substring-search/external index d0381d85..6d7bc718 160000 --- a/modules/history-substring-search/external +++ b/modules/history-substring-search/external @@ -1 +1 @@ -Subproject commit d0381d859c0eb8d52a6211281e622e89153ef812 +Subproject commit 6d7bc718aee81b9afa9e146b5567be014b3ff8f0 From e9f86bf4db23598fc0f9e5980e226a89c5f4ca6f Mon Sep 17 00:00:00 2001 From: Alex Wolkov Date: Fri, 1 May 2015 16:35:59 +0300 Subject: [PATCH 06/22] Update the link to iTerm2 and tmux integration Signed-off-by: Sorin Ionescu --- modules/tmux/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tmux/README.md b/modules/tmux/README.md index b2f6bc8d..11c8a08a 100644 --- a/modules/tmux/README.md +++ b/modules/tmux/README.md @@ -74,4 +74,4 @@ Authors [4]: https://github.com/mxcl/homebrew [5]: https://github.com/sorin-ionescu/prezto/issues [6]: http://iterm2.com -[7]: https://code.google.com/p/iterm2/wiki/TmuxIntegration +[7]: https://gitlab.com/gnachman/iterm2/wikis/TmuxIntegration From 20766138cbdff96adfada53ae468bba5eeff70d0 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 3 May 2015 13:39:09 -0400 Subject: [PATCH 07/22] Update external history-substring-search --- modules/history-substring-search/external | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/history-substring-search/external b/modules/history-substring-search/external index 6d7bc718..c4a83561 160000 --- a/modules/history-substring-search/external +++ b/modules/history-substring-search/external @@ -1 +1 @@ -Subproject commit 6d7bc718aee81b9afa9e146b5567be014b3ff8f0 +Subproject commit c4a83561a12b898ff7145856d0e6ae50757e28ba From 08676a273eba1781ddcb63c4f89cfff9bd62eac4 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 3 May 2015 13:39:33 -0400 Subject: [PATCH 08/22] Update pure theme --- modules/prompt/external/pure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/external/pure b/modules/prompt/external/pure index ef132990..5ade8aeb 160000 --- a/modules/prompt/external/pure +++ b/modules/prompt/external/pure @@ -1 +1 @@ -Subproject commit ef1329909a3c72bb76765ccc519214ce60cedddb +Subproject commit 5ade8aeb8a7d45a59841278a9a86090dd880be63 From ca03fd670aaba43f92854500a1a89079eca68f36 Mon Sep 17 00:00:00 2001 From: James Conroy-Finn Date: Sun, 1 Mar 2015 14:02:05 +0000 Subject: [PATCH 09/22] Skip setting terminal title inside Emacs --- modules/terminal/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/terminal/init.zsh b/modules/terminal/init.zsh index 01140d8c..b0be5023 100644 --- a/modules/terminal/init.zsh +++ b/modules/terminal/init.zsh @@ -6,7 +6,7 @@ # # Return if requirements are not found. -if [[ "$TERM" == (dumb|linux|*bsd*) ]]; then +if [[ "$TERM" == (dumb|linux|*bsd*|eterm*) ]]; then return 1 fi From 6a812ed36bad9032df3645277793f5827dd64088 Mon Sep 17 00:00:00 2001 From: Scott Stevenson Date: Tue, 5 May 2015 21:25:26 +0100 Subject: [PATCH 10/22] Correct typos in completion module --- modules/completion/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 9b5132c7..023a90e7 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -24,7 +24,7 @@ autoload -Uz compinit && compinit -i setopt COMPLETE_IN_WORD # Complete from both ends of a word. setopt ALWAYS_TO_END # Move cursor to the end of a completed word. setopt PATH_DIRS # Perform path search even on command names with slashes. -setopt AUTO_MENU # Show completion menu on a succesive tab press. +setopt AUTO_MENU # Show completion menu on a successive tab press. setopt AUTO_LIST # Automatically list choices on ambiguous completion. setopt AUTO_PARAM_SLASH # If completed parameter is a directory, add a trailing slash. unsetopt MENU_COMPLETE # Do not autoselect the first completion entry. @@ -34,7 +34,7 @@ unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor. # Styles # -# Use caching to make completion for cammands such as dpkg and apt usable. +# Use caching to make completion for commands such as dpkg and apt usable. zstyle ':completion::complete:*' use-cache on zstyle ':completion::complete:*' cache-path "${ZDOTDIR:-$HOME}/.zcompcache" From cd5067668c2f4e342db7c52a68c213366cbb0199 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 19 May 2015 18:24:04 -0400 Subject: [PATCH 11/22] Substitute command when alias is undefined --- modules/utility/init.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 30fee32a..fd7aaf6e 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -71,9 +71,9 @@ if is-callable 'dircolors'; then eval "$(dircolors --sh)" fi - alias ls="$aliases[ls] --color=auto" + alias ls="${aliases[ls]:-ls} --color=auto" else - alias ls="$aliases[ls] -F" + alias ls="${aliases[ls]:-ls} -F" fi else # BSD Core Utilities @@ -84,9 +84,9 @@ else # Define colors for the completion system. export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:' - alias ls='ls -G' + alias ls="${aliases[ls]:-ls} -G" else - alias ls='ls -F' + alias ls="${aliases[ls]:-ls} -F" fi fi @@ -107,7 +107,7 @@ if zstyle -t ':prezto:module:utility:grep' color; then export GREP_COLOR='37;45' # BSD. export GREP_COLORS="mt=$GREP_COLOR" # GNU. - alias grep="$aliases[grep] --color=auto" + alias grep="${aliases[grep]:-grep} --color=auto" fi # Mac OS X Everywhere From a1dea6ae43f5a1f5e5dfabac49766bda67983ea0 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sun, 22 Feb 2015 19:51:09 -0500 Subject: [PATCH 12/22] Get Git status asynchronously --- modules/prompt/functions/prompt_sorin_setup | 50 ++++++++++++++++++--- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index 508dc80d..e27f7384 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -22,6 +22,33 @@ function prompt_sorin_pwd { fi } +function prompt_sorin_git_info { + # Append Git status. + if [[ -s "$_prompt_sorin_precmd_async_data" ]]; then + alias typeset='typeset -g' + source "$_prompt_sorin_precmd_async_data" + RPROMPT+='${git_info:+${(e)git_info[status]}}' + unalias typeset + fi + + # Reset PID. + _prompt_sorin_precmd_async_pid=0 + + # Redisplay prompt. + zle && zle reset-prompt +} + +function prompt_sorin_precmd_async { + # Get Git repository information. + if (( $+functions[git-info] )); then + git-info + typeset -p git_info >! "$_prompt_sorin_precmd_async_data" + fi + + # Signal completion to parent process. + kill -USR1 $$ +} + function prompt_sorin_precmd { setopt LOCAL_OPTIONS unsetopt XTRACE KSH_ARRAYS @@ -29,16 +56,26 @@ function prompt_sorin_precmd { # Format PWD. prompt_sorin_pwd - # Get Git repository information. - if (( $+functions[git-info] )); then - git-info + # Define prompts. + RPROMPT='${editor_info[overwrite]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${INSIDE_EMACS:+" %B%F{green}E%f%b"}%f' + + # Kill the old process of slow commands if it is still running. + if (( _prompt_sorin_precmd_async_pid > 0 )); then + kill -TERM "$_prompt_sorin_precmd_async_pid" &>/dev/null fi + + # Compute slow commands in the background. + trap prompt_sorin_git_info USR1 + prompt_sorin_precmd_async &! + _prompt_sorin_precmd_async_pid=$! } function prompt_sorin_setup { setopt LOCAL_OPTIONS unsetopt XTRACE KSH_ARRAYS prompt_opts=(cr percent subst) + _prompt_sorin_precmd_async_pid=0 + _prompt_sorin_precmd_async_data="${TMPPREFIX}-prompt_sorin_data" # Load required functions. autoload -Uz add-zsh-hook @@ -68,12 +105,11 @@ function prompt_sorin_setup { zstyle ':prezto:module:git:info:unmerged' format ' %%B%F{yellow}═%f%%b' zstyle ':prezto:module:git:info:untracked' format ' %%B%F{white}◼%f%%b' zstyle ':prezto:module:git:info:keys' format \ - 'prompt' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s' \ - 'rprompt' '%A%B%S%a%d%m%r%U%u' + 'status' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s%A%B%S%a%d%m%r%U%u' # Define prompts. - PROMPT='${SSH_TTY:+"%F{red}%n%f@%F{yellow}%m%f "}%F{cyan}${_prompt_sorin_pwd}%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} ' - RPROMPT='${editor_info[overwrite]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${INSIDE_EMACS:+" %B%F{green}E%f%b"}${git_info[rprompt]}' + PROMPT='${SSH_TTY:+"%F{red}%n%f@%F{yellow}%m%f "}%F{cyan}${_prompt_sorin_pwd}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} ' + RPROMPT='' SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' } From f6a2c734233a768fdf519c872b3524dd026b75cb Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 19 May 2015 17:12:17 -0400 Subject: [PATCH 13/22] Remove 'git:' prefix --- modules/prompt/functions/prompt_sorin_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index e27f7384..5e5b73c5 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -105,7 +105,7 @@ function prompt_sorin_setup { zstyle ':prezto:module:git:info:unmerged' format ' %%B%F{yellow}═%f%%b' zstyle ':prezto:module:git:info:untracked' format ' %%B%F{white}◼%f%%b' zstyle ':prezto:module:git:info:keys' format \ - 'status' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s%A%B%S%a%d%m%r%U%u' + 'status' '$(coalesce "%b" "%p" "%c")%s%A%B%S%a%d%m%r%U%u' # Define prompts. PROMPT='${SSH_TTY:+"%F{red}%n%f@%F{yellow}%m%f "}%F{cyan}${_prompt_sorin_pwd}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} ' From 999f0d1a74c1dbe69bc3973d272064f3d43be029 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 19 May 2015 17:14:36 -0400 Subject: [PATCH 14/22] Use numerical colors --- modules/prompt/functions/prompt_sorin_setup | 61 ++++++++++++++------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index 5e5b73c5..75fc72b4 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -8,6 +8,27 @@ # http://i.imgur.com/AzjmpwM.png # +# +# 16 TERMINAL COLORS +# -- --------------- +# 0 black +# 1 red +# 2 green +# 3 yellow +# 4 blue +# 5 magenta +# 6 cyan +# 7 white +# 8 bright black +# 9 bright red +# 10 bright green +# 11 bright yellow +# 12 bright blue +# 13 bright magenta +# 14 bright cyan +# 15 bright white +# + # Load dependencies. pmodload 'helper' @@ -57,7 +78,7 @@ function prompt_sorin_precmd { prompt_sorin_pwd # Define prompts. - RPROMPT='${editor_info[overwrite]}%(?:: %F{red}⏎%f)${VIM:+" %B%F{green}V%f%b"}${INSIDE_EMACS:+" %B%F{green}E%f%b"}%f' + RPROMPT='${editor_info[overwrite]}%(?:: %F{1}⏎%f)${VIM:+" %B%F{6}V%f%b"}${INSIDE_EMACS:+" %B%F{6}E%f%b"}%f' # Kill the old process of slow commands if it is still running. if (( _prompt_sorin_precmd_async_pid > 0 )); then @@ -84,33 +105,33 @@ function prompt_sorin_setup { add-zsh-hook precmd prompt_sorin_precmd # Set editor-info parameters. - zstyle ':prezto:module:editor:info:completing' format '%B%F{red}...%f%b' - zstyle ':prezto:module:editor:info:keymap:primary' format ' %B%F{red}❯%F{yellow}❯%F{green}❯%f%b' - zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format ' %F{red}♺%f' - zstyle ':prezto:module:editor:info:keymap:alternate' format ' %B%F{green}❮%F{yellow}❮%F{red}❮%f%b' + zstyle ':prezto:module:editor:info:completing' format '%B%F{7}...%f%b' + zstyle ':prezto:module:editor:info:keymap:primary' format ' %B%F{1}❯%F{3}❯%F{2}❯%f%b' + zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format ' %F{3}♺%f' + zstyle ':prezto:module:editor:info:keymap:alternate' format ' %B%F{2}❮%F{3}❮%F{1}❮%f%b' # Set git-info parameters. zstyle ':prezto:module:git:info' verbose 'yes' - zstyle ':prezto:module:git:info:action' format ':%%B%F{yellow}%s%f%%b' - zstyle ':prezto:module:git:info:added' format ' %%B%F{green}✚%f%%b' - zstyle ':prezto:module:git:info:ahead' format ' %%B%F{yellow}⬆%f%%b' - zstyle ':prezto:module:git:info:behind' format ' %%B%F{yellow}⬇%f%%b' - zstyle ':prezto:module:git:info:branch' format ':%F{green}%b%f' - zstyle ':prezto:module:git:info:commit' format ':%F{green}%.7c%f' - zstyle ':prezto:module:git:info:deleted' format ' %%B%F{red}✖%f%%b' - zstyle ':prezto:module:git:info:modified' format ' %%B%F{blue}✱%f%%b' - zstyle ':prezto:module:git:info:position' format ':%F{red}%p%f' - zstyle ':prezto:module:git:info:renamed' format ' %%B%F{magenta}➜%f%%b' - zstyle ':prezto:module:git:info:stashed' format ' %%B%F{cyan}✭%f%%b' - zstyle ':prezto:module:git:info:unmerged' format ' %%B%F{yellow}═%f%%b' - zstyle ':prezto:module:git:info:untracked' format ' %%B%F{white}◼%f%%b' + zstyle ':prezto:module:git:info:action' format '%F{7}:%f%%B%F{9}%s%f%%b' + zstyle ':prezto:module:git:info:added' format ' %%B%F{2}✚%f%%b' + zstyle ':prezto:module:git:info:ahead' format ' %%B%F{13}⬆%f%%b' + zstyle ':prezto:module:git:info:behind' format ' %%B%F{13}⬇%f%%b' + zstyle ':prezto:module:git:info:branch' format ' %%B%F{2}%b%f%%b' + zstyle ':prezto:module:git:info:commit' format ' %%B%F{3}%.7c%f%%b' + zstyle ':prezto:module:git:info:deleted' format ' %%B%F{1}✖%f%%b' + zstyle ':prezto:module:git:info:modified' format ' %%B%F{4}✱%f%%b' + zstyle ':prezto:module:git:info:position' format ' %%B%F{13}%p%f%%b' + zstyle ':prezto:module:git:info:renamed' format ' %%B%F{5}➜%f%%b' + zstyle ':prezto:module:git:info:stashed' format ' %%B%F{6}✭%f%%b' + zstyle ':prezto:module:git:info:unmerged' format ' %%B%F{3}═%f%%b' + zstyle ':prezto:module:git:info:untracked' format ' %%B%F{7}◼%f%%b' zstyle ':prezto:module:git:info:keys' format \ 'status' '$(coalesce "%b" "%p" "%c")%s%A%B%S%a%d%m%r%U%u' # Define prompts. - PROMPT='${SSH_TTY:+"%F{red}%n%f@%F{yellow}%m%f "}%F{cyan}${_prompt_sorin_pwd}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} ' + PROMPT='${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)${editor_info[keymap]} ' RPROMPT='' - SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' + SPROMPT='zsh: correct %F{1}%R%f to %F{2}%r%f [nyae]? ' } prompt_sorin_setup "$@" From b46769149be5e19788e8985c3fe758c436e340fb Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 19 May 2015 17:19:21 -0400 Subject: [PATCH 15/22] Remove Emacs indicator The user always knows that he is inside Emacs making the indicator unnecessary. --- modules/prompt/functions/prompt_sorin_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index 75fc72b4..3f66c7c4 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -9,7 +9,7 @@ # # -# 16 TERMINAL COLORS +# 16 Terminal Colors # -- --------------- # 0 black # 1 red @@ -78,7 +78,7 @@ function prompt_sorin_precmd { prompt_sorin_pwd # Define prompts. - RPROMPT='${editor_info[overwrite]}%(?:: %F{1}⏎%f)${VIM:+" %B%F{6}V%f%b"}${INSIDE_EMACS:+" %B%F{6}E%f%b"}%f' + RPROMPT='${editor_info[overwrite]}%(?:: %F{1}⏎%f)${VIM:+" %B%F{6}V%f%b"}' # Kill the old process of slow commands if it is still running. if (( _prompt_sorin_precmd_async_pid > 0 )); then From fe64f91f52bbadc3e627fe7910b28a6d5df064e8 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 19 May 2015 17:39:00 -0400 Subject: [PATCH 16/22] Update sorin screenshot --- README.md | 2 +- modules/prompt/functions/prompt_sorin_setup | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e54a6319..d6b40af0 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [1]: http://www.zsh.org -[2]: http://i.imgur.com/AzjmpwM.png "sorin theme" +[2]: http://i.imgur.com/nrGV6pg.png "sorin theme" [3]: http://git-scm.com [4]: https://github.com [5]: http://gitimmersion.com diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index 3f66c7c4..7a0dab75 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -5,7 +5,7 @@ # Sorin Ionescu # # Screenshots: -# http://i.imgur.com/AzjmpwM.png +# http://i.imgur.com/nrGV6pg.png # # From f7ea78078f81d2d6fbe71d73274926a3f756a586 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 25 May 2015 21:58:43 -0400 Subject: [PATCH 17/22] Update pure theme --- modules/prompt/external/pure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/external/pure b/modules/prompt/external/pure index 5ade8aeb..04212522 160000 --- a/modules/prompt/external/pure +++ b/modules/prompt/external/pure @@ -1 +1 @@ -Subproject commit 5ade8aeb8a7d45a59841278a9a86090dd880be63 +Subproject commit 04212522f39f43998d001b4a94b05856f010a54b From 159418835fb7f6469b47567c7d197596cc75ef8b Mon Sep 17 00:00:00 2001 From: Quang-Linh LE Date: Wed, 10 Dec 2014 08:54:54 +0100 Subject: [PATCH 18/22] Add Linux as as requirement --- modules/homebrew/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/homebrew/init.zsh b/modules/homebrew/init.zsh index 101b6b97..a5979cc9 100644 --- a/modules/homebrew/init.zsh +++ b/modules/homebrew/init.zsh @@ -6,7 +6,7 @@ # # Return if requirements are not found. -if [[ "$OSTYPE" != darwin* ]]; then +if [[ "$OSTYPE" != (darwin|linux)* ]]; then return 1 fi From 904c94469e98ba45910d4d7bd271b6d28c6951f9 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 26 May 2015 22:05:49 -0400 Subject: [PATCH 19/22] Consolidate brew update and upgrade aliases --- modules/homebrew/README.md | 3 +-- modules/homebrew/init.zsh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/homebrew/README.md b/modules/homebrew/README.md index 69a4e87b..84b43865 100644 --- a/modules/homebrew/README.md +++ b/modules/homebrew/README.md @@ -13,8 +13,7 @@ Aliases - `brewi` installs a formula. - `brewl` lists installed formulae. - `brews` searches for a formula. - - `brewU` upgrades Homebrew and outdated brews. - - `brewu` upgrades Homebrew. + - `brewu` updates Homebrew and formulae. - `brewx` uninstalls a formula. ### Homebrew Cask diff --git a/modules/homebrew/init.zsh b/modules/homebrew/init.zsh index a5979cc9..1ebe793d 100644 --- a/modules/homebrew/init.zsh +++ b/modules/homebrew/init.zsh @@ -20,8 +20,7 @@ alias brewC='brew cleanup --force' alias brewi='brew install' alias brewl='brew list' alias brews='brew search' -alias brewu='brew upgrade' -alias brewU='brew update && brew upgrade' +alias brewu='brew update && brew upgrade --all' alias brewx='brew remove' # Homebrew Cask From b6efdc1ea49a3ef4b8b904aacde98ada7a0811e9 Mon Sep 17 00:00:00 2001 From: FireWave Date: Thu, 28 Mar 2013 16:58:10 -0400 Subject: [PATCH 20/22] Add DNF module Signed-off-by: Sorin Ionescu --- modules/README.md | 5 +++++ modules/dnf/README.md | 29 +++++++++++++++++++++++++++++ modules/dnf/init.zsh | 28 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 modules/dnf/README.md create mode 100644 modules/dnf/init.zsh diff --git a/modules/README.md b/modules/README.md index 4d247b24..d0fcdd94 100644 --- a/modules/README.md +++ b/modules/README.md @@ -26,6 +26,11 @@ Directory Sets directory options and defines directory aliases. +DNF +--- + +Defines dnf aliases. + Dpkg ---- diff --git a/modules/dnf/README.md b/modules/dnf/README.md new file mode 100644 index 00000000..06439544 --- /dev/null +++ b/modules/dnf/README.md @@ -0,0 +1,29 @@ +DNF +=== + +Defines [dnf][1] aliases. + +Aliases +------- + + - `dnfc` removes package(s) and leaves. + - `dnfi` installs package(s). + - `dnfh` displays history. + - `dnfl` lists packages. + - `dnfL` lists installed packages. + - `dnfq` displays package information. + - `dnfr` removes package(s). + - `dnfs` searches for a package. + - `dnfu` updates packages. + - `dnfU` upgrates packages. + +Authors +------- + +*The authors of this module should be contacted via the [issue tracker][2].* + + - [Sorin Ionescu](https://github.com/sorin-ionescu) + +[1]: https://fedoraproject.org/wiki/Features/DNF +[2]: https://github.com/sorin-ionescu/prezto/issues + diff --git a/modules/dnf/init.zsh b/modules/dnf/init.zsh new file mode 100644 index 00000000..7a401423 --- /dev/null +++ b/modules/dnf/init.zsh @@ -0,0 +1,28 @@ +# +# Defines dnf aliases. +# +# Authors: +# FireWave +# Sorin Ionescu +# + +# Return if requirements are not found. +if (( ! $+commands[dnf] )); then + return 1 +fi + +# +# Aliases +# + +alias dnfc='sudo dnf clean all' # Cleans the cache. +alias dnfh='dnf history' # Displays history. +alias dnfi='sudo dnf install' # Installs package(s). +alias dnfl='dnf list' # Lists packages. +alias dnfL='dnf list installed' # Lists installed packages. +alias dnfq='dnf info' # Displays package information. +alias dnfr='sudo dnf remove' # Removes package(s). +alias dnfs='dnf search' # Searches for a package. +alias dnfu='sudo dnf update' # Updates packages. +alias dnfU='sudo dnf upgrade' # Upgrades packages. + From a275db55d6fdc8bf92a4722e95196bbfbf44cfae Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 25 May 2015 22:25:22 -0400 Subject: [PATCH 21/22] Fix MacPorts typo --- modules/README.md | 2 +- modules/macports/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/README.md b/modules/README.md index d0fcdd94..2a49804c 100644 --- a/modules/README.md +++ b/modules/README.md @@ -97,7 +97,7 @@ Homebrew Defines Homebrew aliases. -Macports +MacPorts -------- Defines MacPorts aliases and adds MacPorts directories to path variables. diff --git a/modules/macports/README.md b/modules/macports/README.md index 97f67ea0..70e4b8b9 100644 --- a/modules/macports/README.md +++ b/modules/macports/README.md @@ -1,4 +1,4 @@ -Macports +MacPorts ======== Defines MacPorts aliases and adds MacPorts directories to path variables. From 02c5f776fc3ebbc5eee6dc74e84be25542983e26 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 28 May 2015 20:24:58 -0400 Subject: [PATCH 22/22] [Fix #892] Symlink prompt pure async dependency --- modules/prompt/functions/async | 1 + 1 file changed, 1 insertion(+) create mode 120000 modules/prompt/functions/async diff --git a/modules/prompt/functions/async b/modules/prompt/functions/async new file mode 120000 index 00000000..d4b591e1 --- /dev/null +++ b/modules/prompt/functions/async @@ -0,0 +1 @@ +../external/pure/async.zsh \ No newline at end of file