ax-zsh.git
7 days ago30_env: Tweak TMPDIR handling, no longer bother with TMP master
Alexander Barton [Tue, 24 Nov 2020 11:54:21 +0000 (12:54 +0100)]
30_env: Tweak TMPDIR handling, no longer bother with TMP

Move the whole 30_env plugin logic to the "ax-io" stage, so that all
other plugins in all stages can depend on it.

And make sure that TMPDIR ...
- is set and writable; show a warning message if not;
- always ends with a "/", which makes its usage a bit safer.

7 days agoDon't use $HOSTNAME or call hostname(1), use $HOST instead!
Alexander Barton [Tue, 24 Nov 2020 11:46:58 +0000 (12:46 +0100)]
Don't use $HOSTNAME or call hostname(1), use $HOST instead!

7 days agoAdd a hint to ax.zsh, so that iTerm2 doesn't add its shell integration
Alexander Barton [Tue, 24 Nov 2020 11:46:10 +0000 (12:46 +0100)]
Add a hint to ax.zsh, so that iTerm2 doesn't add its shell integration

You should enable the iTerm2 plugin instead!

7 days agoiterm2: Update integration, add iterm2_clear_captured_output() function
Alexander Barton [Tue, 24 Nov 2020 11:42:50 +0000 (12:42 +0100)]
iterm2: Update integration, add iterm2_clear_captured_output() function

This brings our integration in line with upstream v12 (don't cache the
host name; we simply use $HOST now), fixes some typos, enhances the test
for the iterm2_print_user_vars() function and introduces a ax-zsh
specific new iterm2_clear_captured_output() function.

9 days agoaxzshctl check-plugins: Use a subshell and cache core zshrc-stage plugins
Alexander Barton [Sun, 22 Nov 2020 23:32:12 +0000 (00:32 +0100)]
axzshctl check-plugins: Use a subshell and cache core zshrc-stage plugins

This reduces execution time of "axzshctl check-plugins" on one of my
macOS machines from ~24 down to ~8 seconds. Wow!

9 days ago00-newline: This plugin is optional for "axzshctl check-plugins"
Alexander Barton [Sun, 22 Nov 2020 23:29:35 +0000 (00:29 +0100)]
00-newline: This plugin is optional for "axzshctl check-plugins"

9 days agoaxzshctl: Embed "ax-common" compatibility functions
Alexander Barton [Sun, 22 Nov 2020 23:28:54 +0000 (00:28 +0100)]
axzshctl: Embed "ax-common" compatibility functions

9 days agoaxzshctl check-plugins: Enhance output
Alexander Barton [Sun, 22 Nov 2020 23:19:19 +0000 (00:19 +0100)]
axzshctl check-plugins: Enhance output

9 days agoaxzshctl check-plugins: Correctly handle "ax-io" plugins
Alexander Barton [Sun, 22 Nov 2020 23:16:04 +0000 (00:16 +0100)]
axzshctl check-plugins: Correctly handle "ax-io" plugins

3 months agohistory: Make sure HISTFILE is set
Alexander Barton [Mon, 24 Aug 2020 08:13:58 +0000 (10:13 +0200)]
history: Make sure HISTFILE is set

Not setting HISTFILE at all disables the history mechanism completely,
so validate this and set HISTFILE, when not done already on the
system-level, for example.

This somewhat reverts commit 7ec1869f094410a2fa14da065fda0e0421446ada.

3 months agoiterm2: Enable use inside of tmux(1) sessions
Alexander Barton [Sun, 23 Aug 2020 16:19:02 +0000 (18:19 +0200)]
iterm2: Enable use inside of tmux(1) sessions

3 months agoiterm2: Add iTerm 2 tools folder to search path
Alexander Barton [Sun, 23 Aug 2020 16:16:07 +0000 (18:16 +0200)]
iterm2: Add iTerm 2 tools folder to search path

3 months agostd_aliases: Add some more common aliases
Alexander Barton [Sun, 23 Aug 2020 15:09:44 +0000 (17:09 +0200)]
std_aliases: Add some more common aliases

Add "la", "-", "md" and "rd" aliases known from OhMyZsh.

3 months agohistory: Introduce the clear_history() function
Alexander Barton [Sun, 23 Aug 2020 15:02:38 +0000 (17:02 +0200)]
history: Introduce the clear_history() function

3 months agoless: Explicitely set the PAGER variable to the path of less(1)
Alexander Barton [Sun, 23 Aug 2020 15:02:14 +0000 (17:02 +0200)]
less: Explicitely set the PAGER variable to the path of less(1)

3 months agohistory: Don't fiddle with HISTFILE, use its defaults
Alexander Barton [Sun, 23 Aug 2020 15:01:48 +0000 (17:01 +0200)]
history: Don't fiddle with HISTFILE, use its defaults

Don't relocate it to $ZSH_CACHE_DIR, as it clearly is not "cached data":
it can't be recreated when lost!

4 months agoAdd "00-newline" plugin
Alexander Barton [Fri, 31 Jul 2020 17:17:10 +0000 (19:17 +0200)]
Add "00-newline" plugin

4 months agoNew "neofetch" plugin
Alexander Barton [Fri, 31 Jul 2020 17:09:06 +0000 (19:09 +0200)]
New "neofetch" plugin

4 months agoNew "calendar" plugin
Alexander Barton [Fri, 31 Jul 2020 17:08:56 +0000 (19:08 +0200)]
New "calendar" plugin

4 months agoicalbuddy: Don't start with an empty line
Alexander Barton [Fri, 31 Jul 2020 17:08:30 +0000 (19:08 +0200)]
icalbuddy: Don't start with an empty line

Our "new convention" is that output plugins should end with an empty
line, but not start with one.

4 months agoicalbuddy, remind: Create "stamp file" in XDG_CACHE_HOME
Alexander Barton [Fri, 31 Jul 2020 17:06:57 +0000 (19:06 +0200)]
icalbuddy, remind: Create "stamp file" in XDG_CACHE_HOME

4 months agoaxzshctl: Set AXZSH_PLUGIN_CHECK=1 when rebuilding the cache
Alexander Barton [Fri, 31 Jul 2020 17:04:47 +0000 (19:04 +0200)]
axzshctl: Set AXZSH_PLUGIN_CHECK=1 when rebuilding the cache

So some "sensitive" plugins are skipped, for example the ones that
would produce some output or create "stamp files".

4 months agocore: Move 20_home and 30_env to "ax-io" stage
Alexander Barton [Fri, 31 Jul 2020 17:03:22 +0000 (19:03 +0200)]
core: Move 20_home and 30_env to "ax-io" stage

This ensures that some more environment variables are already setup
before running other plugins in the "ax-io" stage.

4 months ago80_local_config: Read local profile(s) in "ax-io" stage
Alexander Barton [Sun, 12 Jul 2020 14:49:36 +0000 (16:49 +0200)]
80_local_config: Read local profile(s) in "ax-io" stage

4 months agostd_env: Set CLICOLOR=1 (if not set already)
Alexander Barton [Sun, 5 Jul 2020 20:10:42 +0000 (22:10 +0200)]
std_env: Set CLICOLOR=1 (if not set already)

This enables support for colors in some CLI tools on some BSD systems
and tools, like on FreeBSD.

4 months agoaxzshctl: Remove "ax-io.cache" in UpdatePluginCache(), too!
Alexander Barton [Sun, 5 Jul 2020 16:19:09 +0000 (18:19 +0200)]
axzshctl: Remove "ax-io.cache" in UpdatePluginCache(), too!

4 months ago11_terminal: Fix file names in file comments
Alexander Barton [Sun, 5 Jul 2020 16:18:46 +0000 (18:18 +0200)]
11_terminal: Fix file names in file comments

5 months agoaxzshctl: Add --version
Alexander Barton [Thu, 11 Jun 2020 22:01:05 +0000 (00:01 +0200)]
axzshctl: Add --version

5 months agoaxzshctl: Show help on stderr, add "help" alias
Alexander Barton [Thu, 11 Jun 2020 21:50:17 +0000 (23:50 +0200)]
axzshctl: Show help on stderr, add "help" alias

5 months agoNew "std_functions" default plugin
Alexander Barton [Thu, 11 Jun 2020 12:07:12 +0000 (14:07 +0200)]
New "std_functions" default plugin

This plugin will implement some "standard" functions. Right now, it only
implements take() and zsh_stats() functions, known from OhMyZsh.

5 months agoIntegrate support for Powerlevel10k, including "instant prompt"
Alexander Barton [Thu, 11 Jun 2020 12:05:21 +0000 (14:05 +0200)]
Integrate support for Powerlevel10k, including "instant prompt"

- <https://github.com/romkatv/powerlevel10k>,
- <https://github.com/romkatv/powerlevel10k#instant-prompt>

5 months agoIntroduce new "ax-io" stage, which is run before all other stages
Alexander Barton [Thu, 11 Jun 2020 12:03:50 +0000 (14:03 +0200)]
Introduce new "ax-io" stage, which is run before all other stages

This is in preparation of supporting Powerlevel10k "instant prompt",
which requires all input/output be done before activating it.

5 months agoax.zsh: Refactor "stage initialization" into new axzsh_handle_stage() function
Alexander Barton [Thu, 11 Jun 2020 12:01:17 +0000 (14:01 +0200)]
ax.zsh: Refactor "stage initialization" into new axzsh_handle_stage() function

5 months agoiterm2: Update to iTerm2 shell integration v11
Alexander Barton [Sun, 7 Jun 2020 15:23:00 +0000 (17:23 +0200)]
iterm2: Update to iTerm2 shell integration v11

5 months ago12_locale: Enhance matching of Linux systems
Alexander Barton [Sat, 6 Jun 2020 18:47:22 +0000 (20:47 +0200)]
12_locale: Enhance matching of Linux systems

The OSTYPE is "linux-gnu" on AMD64, but it is "linux-gnueabihf" on the
RaspberryPi, for example. So use a regular expression and match for
"^linux-gnu" ...

6 months agoaxzshctl: Look harder for themes in remote modules
Alexander Barton [Sun, 24 May 2020 19:57:56 +0000 (21:57 +0200)]
axzshctl: Look harder for themes in remote modules

6 months agoaxzshctl: Use the enhanced test function of zsh
Alexander Barton [Sun, 24 May 2020 19:27:30 +0000 (21:27 +0200)]
axzshctl: Use the enhanced test function of zsh

6 months agoNew "travis" plugin
Alexander Barton [Sun, 24 May 2020 19:13:05 +0000 (21:13 +0200)]
New "travis" plugin

7 months agoNew "hstr" plugin
Alexander Barton [Wed, 22 Apr 2020 09:23:34 +0000 (11:23 +0200)]
New "hstr" plugin

7 months agoinstall.sh: Fix some shellcheck(1) warnings, update ax-common.sh code
Alexander Barton [Wed, 22 Apr 2020 09:23:10 +0000 (11:23 +0200)]
install.sh: Fix some shellcheck(1) warnings, update ax-common.sh code

8 months agoNew "fzy" plugin
Alexander Barton [Sun, 29 Mar 2020 23:19:28 +0000 (01:19 +0200)]
New "fzy" plugin

8 months agostd_aliases: Remove "0", quite useless
Alexander Barton [Sat, 21 Mar 2020 18:05:47 +0000 (19:05 +0100)]
std_aliases: Remove "0", quite useless

8 months agoFix axzsh_is_widechar_terminal() logic
Alexander Barton [Sat, 21 Mar 2020 13:14:19 +0000 (14:14 +0100)]
Fix axzsh_is_widechar_terminal() logic

axzsh_is_widechar_terminal() returns 0 when the terminal CAN'T display
wiede characters in multiple columns, and non-null, when the terminal
CAN display wide characters.

Fix themes accordingly.

8 months agoaxemoji: Use nicer emoji for righthand error notice
Alexander Barton [Sat, 21 Mar 2020 13:07:35 +0000 (14:07 +0100)]
axemoji: Use nicer emoji for righthand error notice

8 months agoKeep $AXZSH variable in axttyinfo alias
Alexander Barton [Sat, 21 Mar 2020 13:06:43 +0000 (14:06 +0100)]
Keep $AXZSH variable in axttyinfo alias

9 months agoaxzshctl: Don't use verbose mode for file operations (ln, rm)
Alexander Barton [Sat, 15 Feb 2020 16:40:29 +0000 (17:40 +0100)]
axzshctl: Don't use verbose mode for file operations (ln, rm)

9 months agoaxzshctl: Don't show title for "UpdatePluginCache" when called internally
Alexander Barton [Sat, 15 Feb 2020 16:39:12 +0000 (17:39 +0100)]
axzshctl: Don't show title for "UpdatePluginCache" when called internally

9 months agoaxzshctl: Streamline messages on "enable-plugin"
Alexander Barton [Sat, 15 Feb 2020 16:37:52 +0000 (17:37 +0100)]
axzshctl: Streamline messages on "enable-plugin"

Show "success" messages in green (not in yellow, as warning), and show
it for both themes and plugins.

9 months agoaxzshctl: Handle themes on "disable-plugin" & clean up repositories
Alexander Barton [Sat, 15 Feb 2020 16:34:15 +0000 (17:34 +0100)]
axzshctl: Handle themes on "disable-plugin" & clean up repositories

handle plugins providing a theme, and try to remove cloned repositories
not only when disabling a plugin succeeded, but always.

9 months agofzf: Look in BSD-specific paths, too!
Alexander Barton [Fri, 7 Feb 2020 19:30:54 +0000 (20:30 +0100)]
fzf: Look in BSD-specific paths, too!

11 months agoaxzshctl: Implement "--help" option, and ehnance error handling
Alexander Barton [Tue, 31 Dec 2019 15:56:50 +0000 (16:56 +0100)]
axzshctl: Implement "--help" option, and ehnance error handling

Don't exit with an error code ("non-null") when the usage information
was requested with "--help", and write errors parsing the command line
to stderr and exit with code 2.

11 months agoaxzshctl: Use ax_error to show error messages
Alexander Barton [Tue, 31 Dec 2019 15:54:39 +0000 (16:54 +0100)]
axzshctl: Use ax_error to show error messages

This results in error messages to go to stderr.

In addition, suppress the "no theme found" warning message when trying
to enable a remote module as theme. This is expected when it is no
theme, so don't confuse the user.

11 months agoaxzshctl: Enhance completions, include cloned modules
Alexander Barton [Sat, 28 Dec 2019 22:40:41 +0000 (23:40 +0100)]
axzshctl: Enhance completions, include cloned modules

Use ZSH globbing instead of calling external commands (like ls, cut and
find), and include cloned repositories ("foreign modules") in the
completions, too.

11 months agoaxzshctl: Create shallow clones of remote modules
Alexander Barton [Sat, 28 Dec 2019 22:05:17 +0000 (23:05 +0100)]
axzshctl: Create shallow clones of remote modules

11 months agoaxzshctl: Enhance activation of "foreign" modules
Alexander Barton [Sat, 28 Dec 2019 21:59:48 +0000 (22:59 +0100)]
axzshctl: Enhance activation of "foreign" modules

- Name foreign code "modules", as we don't know yet if it provides a
  theme or a plugin.
- Don't enable it as a plugin when a theme is provided (in this case,
  enable it as a theme only).
- Check for a theme not only on initial cloning, but on all activations.

11 months agodocker-machine: Use and test for "default" machine
Alexander Barton [Sat, 7 Dec 2019 00:45:47 +0000 (01:45 +0100)]
docker-machine: Use and test for "default" machine

12 months agopdfman: Use completions for "man"
Alexander Barton [Sat, 30 Nov 2019 17:41:47 +0000 (18:41 +0100)]
pdfman: Use completions for "man"

12 months ago50_completion: Enhance completion styles
Alexander Barton [Sat, 30 Nov 2019 17:39:31 +0000 (18:39 +0100)]
50_completion: Enhance completion styles

- Enable _expand completer.
- Nicer messages using bold and colored text.
- Show secton numbers for manual pages.
- Ignore some more users.
- Set "single-ignored show".

12 months ago50_completion: Don't set complete_aliases
Alexander Barton [Sat, 2 Nov 2019 21:04:41 +0000 (22:04 +0100)]
50_completion: Don't set complete_aliases

We wan't to have completion for expaneded aliases, not for the alias
itself -- so don't set "complete_aliases"!

12 months ago50_completion: Enable group descriptions
Alexander Barton [Sat, 2 Nov 2019 20:55:24 +0000 (21:55 +0100)]
50_completion: Enable group descriptions

12 months agobash_completion: Define dummy function to suppress errors
Alexander Barton [Sat, 2 Nov 2019 20:53:30 +0000 (21:53 +0100)]
bash_completion: Define dummy function to suppress errors

Define a dummy _init_completion() function, which some bash-completion
scripts do call (for example fail2ban-client ...): this doesn't make the
completion usable, but suppresses error messages at least ...

12 months ago30_env: Test for and create missing directories
Alexander Barton [Sat, 2 Nov 2019 20:42:15 +0000 (21:42 +0100)]
30_env: Test for and create missing directories

Not only test if the variables are set, but create the directories when
missing, too!

13 months agoAdd new "bash_completion" plugin
Alexander Barton [Sat, 2 Nov 2019 15:51:19 +0000 (16:51 +0100)]
Add new "bash_completion" plugin

13 months agoRemove most "nocorrect" settings
Alexander Barton [Sat, 2 Nov 2019 15:50:18 +0000 (16:50 +0100)]
Remove most "nocorrect" settings

14 months agossh: Look for SSH "auth socket" in common locations
Alexander Barton [Thu, 5 Sep 2019 14:57:24 +0000 (16:57 +0200)]
ssh: Look for SSH "auth socket" in common locations

15 months ago11_terminal: "putty*" is a modern terminal
Alexander Barton [Wed, 21 Aug 2019 09:12:53 +0000 (11:12 +0200)]
11_terminal: "putty*" is a modern terminal

16 months ago11_terminal: Set "icon/tab title", not the "window" title
Alexander Barton [Thu, 1 Aug 2019 14:14:38 +0000 (16:14 +0200)]
11_terminal: Set "icon/tab title", not the "window" title

Don't set the "window title" at all (and reset it before showing the
new prompt), and set the "icon title" ("tab title") instead: this gives
a much better experience when using tabs in Terminal.app and iTerm2.app,
especially when mixing tabbed and non-tabbed windows.

17 months agoless: Disable "useful" hints of lesspipe(1)
Alexander Barton [Tue, 25 Jun 2019 14:40:52 +0000 (16:40 +0200)]
less: Disable "useful" hints of lesspipe(1)

See https://github.com/wofr06/lesspipe/issues/21.

18 months agossh_secure: "Nicer" quoting, add completion aliases
Alexander Barton [Tue, 28 May 2019 15:18:39 +0000 (17:18 +0200)]
ssh_secure: "Nicer" quoting, add completion aliases

18 months agoremind: Don't show error message when there is no "remind" file
Alexander Barton [Tue, 28 May 2019 15:16:49 +0000 (17:16 +0200)]
remind: Don't show error message when there is no "remind" file

18 months agoFix some warnings of "markdownlint"
Alexander Barton [Sun, 12 May 2019 22:37:02 +0000 (00:37 +0200)]
Fix some warnings of "markdownlint"

18 months agoeditor_select: Add support for "code", "mvim", "gvim"
Alexander Barton [Sun, 12 May 2019 22:15:45 +0000 (00:15 +0200)]
editor_select: Add support for "code", "mvim", "gvim"

18 months agoNew "python" plugin
Alexander Barton [Sun, 12 May 2019 21:53:53 +0000 (23:53 +0200)]
New "python" plugin

18 months agoNew "googler" plugin
Alexander Barton [Sun, 12 May 2019 21:46:26 +0000 (23:46 +0200)]
New "googler" plugin

19 months agoAdd new "nodejs" plugin
Alexander Barton [Thu, 25 Apr 2019 13:31:59 +0000 (15:31 +0200)]
Add new "nodejs" plugin

1. Create user-local NPM package directory ~/.npm-packages
2. Setup PATH and MANPATH to include NodeJS search paths

19 months agoless: Add support for lesspipe.sh
Alexander Barton [Thu, 25 Apr 2019 13:31:34 +0000 (15:31 +0200)]
less: Add support for lesspipe.sh

19 months agobuku: Don't set "--tacit" in "b" alias
Alexander Barton [Mon, 22 Apr 2019 21:09:58 +0000 (23:09 +0200)]
buku: Don't set "--tacit" in "b" alias

19 months agoplugins/README.md: Initial plugin documentation
Alexander Barton [Mon, 22 Apr 2019 15:46:57 +0000 (17:46 +0200)]
plugins/README.md: Initial plugin documentation

For now, only a few hints ...

19 months ago11_terminal: Fix & enhance initialization of FG, BG, FX arrays
Alexander Barton [Mon, 22 Apr 2019 15:45:57 +0000 (17:45 +0200)]
11_terminal: Fix & enhance initialization of FG, BG, FX arrays

This includes support for 16 colors as well as 256 colors.

Other fixes:
- Enhance documentation a little bit.
- Don't use raw ESC codes, use \e instead!
- Remove unneeded %{...%} escaping in spectrum_XXX() functions.

19 months agoFix handling of legacy terminal types
Alexander Barton [Mon, 22 Apr 2019 15:38:33 +0000 (17:38 +0200)]
Fix handling of legacy terminal types

Disable plugins/code requiring current terminal features not only on
"dumb" terminals, but on legacy ("not modern") terminals, too. This is
handled by using the axzsh_is_modern_terminal() function insetad of
axzsh_is_dumb_terminal().

And fix plugins to return 91 ("ignore") as result code in this case.

In addition, disable theming only on dumb terminals (as before), but
fall back to the standard "ax" theme on non-modern terminals, too!

19 months agoicalbuddy, remind: Don't show when "hush login" is active
Alexander Barton [Mon, 22 Apr 2019 11:44:22 +0000 (13:44 +0200)]
icalbuddy, remind: Don't show when "hush login" is active

19 months agoNew "mankier" plugin
Alexander Barton [Fri, 19 Apr 2019 16:52:59 +0000 (18:52 +0200)]
New "mankier" plugin

This sets up functions to use *ManKier*, a online manual page service:
<https://www.mankier.com/>

20 months agoNew "buku" plugin
Alexander Barton [Tue, 5 Mar 2019 22:23:35 +0000 (23:23 +0100)]
New "buku" plugin

20 months agoNew "trash" plugin (for macOS)
Alexander Barton [Tue, 5 Mar 2019 22:23:05 +0000 (23:23 +0100)]
New "trash" plugin (for macOS)

21 months agocorrection: Ignore dot files, don't offer them as a correction
Alexander Barton [Fri, 22 Feb 2019 21:14:23 +0000 (22:14 +0100)]
correction: Ignore dot files, don't offer them as a correction

21 months agoNew "command-not-found" plugin
Alexander Barton [Fri, 22 Feb 2019 21:08:29 +0000 (22:08 +0100)]
New "command-not-found" plugin

21 months agostd_aliases: No longer define ".." alias
Alexander Barton [Fri, 22 Feb 2019 20:44:57 +0000 (21:44 +0100)]
std_aliases: No longer define ".." alias

It is not needed, as we enable the "auto_cd" shell option.

21 months agocheat: Enhance plugin a bit
Alexander Barton [Fri, 22 Feb 2019 20:37:48 +0000 (21:37 +0100)]
cheat: Enhance plugin a bit

- Use cht.sh script, when available
- Use HTTPS (instead of plain HTTP)

21 months agostd_aliases: Add some aliases for fast directory changes
Alexander Barton [Wed, 6 Feb 2019 23:17:51 +0000 (00:17 +0100)]
std_aliases: Add some aliases for fast directory changes

21 months agovirtualenv: Add support for "pipenv"
Alexander Barton [Wed, 6 Feb 2019 22:42:42 +0000 (23:42 +0100)]
virtualenv: Add support for "pipenv"

21 months ago50_prompt: Move VCS prompt styling into VCS plugin
Alexander Barton [Tue, 5 Feb 2019 21:34:40 +0000 (22:34 +0100)]
50_prompt: Move VCS prompt styling into VCS plugin

This is required because some 3rd-party themes written for OhMyZsh call
git_prompt_info() directly, and don't use ax_vcs_prompt(), and therefore
havn't had their VCS prefix and postfix shown ...

21 months ago11_terminal: Introduce ${bg[defualt]} and $fg[default]
Alexander Barton [Tue, 5 Feb 2019 21:33:47 +0000 (22:33 +0100)]
11_terminal: Introduce ${bg[defualt]} and $fg[default]

And use it in 50_prompt which leads to better handling of foreground
and background colors modified for the prompt in a theme.

21 months agogit: Return prompt fragments only inside of a Git repository
Alexander Barton [Tue, 5 Feb 2019 21:32:38 +0000 (22:32 +0100)]
git: Return prompt fragments only inside of a Git repository

21 months agoThemes: Use "%B" only in combination with "%b"
Alexander Barton [Tue, 5 Feb 2019 21:26:39 +0000 (22:26 +0100)]
Themes: Use "%B" only in combination with "%b"

Don't mix "${fg_no_bold[]}", "%B", and "$reset_color". This can lead to
unexpected results and garbled output.

21 months agoinstall.sh: Make it safe to call it wgen ~/.axzsh is a symlink
Alexander Barton [Tue, 5 Feb 2019 19:28:27 +0000 (20:28 +0100)]
install.sh: Make it safe to call it wgen ~/.axzsh is a symlink

21 months ago99_cleanup: Map OhMyZSH theme variables to ax-zsh variants
Alexander Barton [Tue, 5 Feb 2019 19:18:51 +0000 (20:18 +0100)]
99_cleanup: Map OhMyZSH theme variables to ax-zsh variants

Basically this is ZSH_THEME_GIT_xxx => ZSH_THEME_VCS_PROMPT_xxx.

21 months ago50_prompt: Implement some common functions as "dummies"
Alexander Barton [Tue, 5 Feb 2019 19:15:12 +0000 (20:15 +0100)]
50_prompt: Implement some common functions as "dummies"

So now plugins and themes depending on those functions -- without
testing for them -- won't error our and/or issue lots of warning/error
messages.

Later on the actual ax-zsh plugins will override those dummies, when
enabled. See the "git" plugin, for example.

21 months agogit: Split git_prompt() into git_prompt_info() and git_prompt_status()
Alexander Barton [Tue, 5 Feb 2019 19:14:31 +0000 (20:14 +0100)]
git: Split git_prompt() into git_prompt_info() and git_prompt_status()

This is more in line to OhMyZsh, which some themes depend on.

21 months agoaxzshctl: No need to regenerate caches on theme change
Alexander Barton [Tue, 5 Feb 2019 19:13:13 +0000 (20:13 +0100)]
axzshctl: No need to regenerate caches on theme change

21 months agoRead in the theme before cleaning up ...
Alexander Barton [Sun, 3 Feb 2019 22:35:06 +0000 (23:35 +0100)]
Read in the theme before cleaning up ...

It was wrong to source the theme file last, because 99_cleanup undefines
some functions that can be used by themes -- even by the default theme!