]> arthur.barton.de Git - ax-zsh.git/log
ax-zsh.git
16 months agoaxttyinfo: Tweak the tool a bit :-) github/master
Alexander Barton [Sun, 25 Dec 2022 13:35:05 +0000 (14:35 +0100)]
axttyinfo: Tweak the tool a bit :-)

- Show the terminal program and its version
- Show way more environment variables and enhance formatting
- Implement "one line" (-1) mode

16 months agostd_env: Don't set REPORTTIME in Warp terminal
Alexander Barton [Sun, 25 Dec 2022 13:33:53 +0000 (14:33 +0100)]
std_env: Don't set REPORTTIME in Warp terminal

The Warp terminal does this on its own.

16 months agoLook for configuration files in $ZDOTDIR
Alexander Barton [Sun, 11 Dec 2022 14:36:25 +0000 (15:36 +0100)]
Look for configuration files in $ZDOTDIR

This allows you to set/override the ZDOTDIR environment variable in your
~/.zshenv file to have different "sets" of AX-ZSH configurations in
different ZDOTDIR folders. For example, for different terminal emulator
applications, system architectures or hosts.

If ZDOTDIR is not set, $HOME is used (so no functional changes when the
ZDOTDIR environment variable is not set).

16 months ago"Expand" all alias definitions
Alexander Barton [Sun, 27 Nov 2022 15:37:04 +0000 (16:37 +0100)]
"Expand" all alias definitions

This makes it more obvious, what the alias is about, and makes the the
"olets/zsh-abbr" extension more useful, for example.

16 months agogit: Add some more OhMyZsh-compatible aliases
Alexander Barton [Sun, 27 Nov 2022 12:18:57 +0000 (13:18 +0100)]
git: Add some more OhMyZsh-compatible aliases

18 months agobrowser_select: Do not use open(1) on Linux to prevent endless recursion
Alexander Barton [Mon, 17 Oct 2022 14:37:53 +0000 (16:37 +0200)]
browser_select: Do not use open(1) on Linux to prevent endless recursion

19 months agohomebrew: brew() function: Test permissions on the repository
Alexander Barton [Wed, 21 Sep 2022 21:19:09 +0000 (23:19 +0200)]
homebrew: brew() function: Test permissions on the repository

Don't test it on the "prefix", because permissions on this directory can be
more restrictive (which could be fine ...).

19 months ago30_env.ax-io: Try to be even more clever when setting TMPDIR
Alexander Barton [Wed, 21 Sep 2022 17:38:06 +0000 (19:38 +0200)]
30_env.ax-io: Try to be even more clever when setting TMPDIR

Silently use the "runtime directory" of the user, when this is set already.

And if not, make sure to not use "/" but fallback to "/tmp" when the mktemp(1)
command failed for example.

19 months agoStreamline the installation instructions a bit
Alexander Barton [Mon, 19 Sep 2022 19:49:06 +0000 (21:49 +0200)]
Streamline the installation instructions a bit

- Restructure some paragraphs and
- introduce new "Post-Installation Tasks" section.
- Remove redundancies.
- Add note on "per-user installation".

19 months agohomebrew: stat(1) is not protable! Use ls(1) and awk(1) ...
Alexander Barton [Sat, 27 Aug 2022 16:05:40 +0000 (18:05 +0200)]
homebrew: stat(1) is not protable! Use ls(1) and awk(1) ...

19 months agohomebrew: Add a wrapper function for the brew(1) command
Alexander Barton [Sat, 27 Aug 2022 15:41:11 +0000 (17:41 +0200)]
homebrew: Add a wrapper function for the brew(1) command

This wrapper function for the `brew`(1) command does the following:

- Detect the location of the "real" brew(1) command.
- Change user and group when the Homebrew installation is owned by a different
  user (to preserve sane file permissions).
- Set a relaxed umask(1) so that other users can use software installed by
  Homebrew.
- Call the "real" `brew`(1) command.

22 months agostd_aliases: Add new "lx" alias for "ls -A"
Alexander Barton [Sun, 29 May 2022 10:51:11 +0000 (12:51 +0200)]
std_aliases: Add new "lx" alias for "ls -A"

23 months agolsd: Don't use long options in the ls(1) alias
Alexander Barton [Sat, 14 May 2022 11:25:32 +0000 (13:25 +0200)]
lsd: Don't use long options in the ls(1) alias

Both the "--date" and "--group-dirs" options are "nice", and I'd like to
set them here, but it looks like long options break the file name
completion logic: when a long option is present, you can't tab-complete
any file or folder name any more, which is _really_ annoying!

So remove those options again (for now)!?

If you wan't to use long options, like the ones removed now here, you
can use a configuration file in ~/.config/lsd/config.yaml, for example.

23 months agoNew "lsd" plugin
Alexander Barton [Sat, 14 May 2022 11:11:32 +0000 (13:11 +0200)]
New "lsd" plugin

23 months agoNew "bat" plugin
Alexander Barton [Sun, 1 May 2022 13:51:41 +0000 (15:51 +0200)]
New "bat" plugin

2 years agoFix markdownling warning MD049: Emphasis style should be consistent
Alexander Barton [Thu, 7 Apr 2022 21:03:59 +0000 (23:03 +0200)]
Fix markdownling warning MD049: Emphasis style should be consistent

2 years agoUpdate copyright notices for 2022 :-)
Alexander Barton [Thu, 7 Apr 2022 20:56:40 +0000 (22:56 +0200)]
Update copyright notices for 2022 :-)

2 years agostd_functions: Make open_command() work on Linux without X11 running
Alexander Barton [Fri, 4 Feb 2022 22:06:56 +0000 (23:06 +0100)]
std_functions: Make open_command() work on Linux without X11 running

2 years agoNew "websearch" plugin
Alexander Barton [Fri, 4 Feb 2022 21:58:38 +0000 (22:58 +0100)]
New "websearch" plugin

2 years agostd_functions: Fix return code of open_command()
Alexander Barton [Fri, 4 Feb 2022 21:48:36 +0000 (22:48 +0100)]
std_functions: Fix return code of open_command()

2 years agoWrite an initial PATH variable to the "ax-io" cache file
Alexander Barton [Tue, 1 Feb 2022 20:19:29 +0000 (21:19 +0100)]
Write an initial PATH variable to the "ax-io" cache file

This initial PATH  becomes overwritten by the path plugin at the
"zprofile" stage later on, but this way "ax-io" stage plugins have a
somewhat saner PATH to begin with ...

2 years agoSimplify error checking on cache file creation
Alexander Barton [Tue, 1 Feb 2022 20:17:03 +0000 (21:17 +0100)]
Simplify error checking on cache file creation

Just try to write to the cache file without testing first. And the
"cache_file" variable can never be empty, see code above!

2 years agoDisable Powerlevel9k "instant prompt" warnings in debug mode
Alexander Barton [Tue, 1 Feb 2022 20:15:01 +0000 (21:15 +0100)]
Disable Powerlevel9k "instant prompt" warnings in debug mode

2 years ago30_path: Fix file name in header
Alexander Barton [Tue, 1 Feb 2022 20:13:11 +0000 (21:13 +0100)]
30_path: Fix file name in header

2 years agoaxzshctl: Be verbose for "axzshctl update-caches" in debug mode
Alexander Barton [Tue, 1 Feb 2022 20:12:33 +0000 (21:12 +0100)]
axzshctl: Be verbose for "axzshctl update-caches" in debug mode

2 years agobyebye: Be silent in "check mode"
Alexander Barton [Tue, 1 Feb 2022 20:11:55 +0000 (21:11 +0100)]
byebye: Be silent in "check mode"

2 years agoGit: Ignore the "debug"-mode trigger file
Alexander Barton [Tue, 1 Feb 2022 19:22:38 +0000 (20:22 +0100)]
Git: Ignore the "debug"-mode trigger file

2 years agoless: Hide "ps: stdin: not a terminal" when using lesspipe.sh
Alexander Barton [Sat, 22 Jan 2022 12:57:59 +0000 (13:57 +0100)]
less: Hide "ps: stdin: not a terminal" when using lesspipe.sh

2 years agoaxttyinfo: Show COLORTERM when set
Alexander Barton [Fri, 21 Jan 2022 17:41:57 +0000 (18:41 +0100)]
axttyinfo: Show COLORTERM when set

2 years agoaxttyinfo: Show LANG only when actually set
Alexander Barton [Fri, 21 Jan 2022 17:41:45 +0000 (18:41 +0100)]
axttyinfo: Show LANG only when actually set

2 years agoaxemoji: Show host name in root prompts
Alexander Barton [Tue, 28 Dec 2021 16:40:44 +0000 (17:40 +0100)]
axemoji: Show host name in root prompts

2 years agoRefactor "root prompt" handling, don't show root "logname" by default
Alexander Barton [Tue, 28 Dec 2021 16:40:08 +0000 (17:40 +0100)]
Refactor "root prompt" handling, don't show root "logname" by default

But still enable it for the axemoji theme, so no functional changes.

2 years agoRevert 'Set "path" and "manpath" as "unique" type (-U), too!'
Alexander Barton [Tue, 28 Dec 2021 14:25:00 +0000 (15:25 +0100)]
Revert 'Set "path" and "manpath" as "unique" type (-U), too!'

When setting "path" to unique, PATH becomes reset on some systems? Hm??
So don't do it ...

This reverts commit 25cf1cc8c8c30f0162e551d6fdfdd84212b24395.

2 years agoaxzshctl: Show hint how to restart the shell when enabling AX-ZSH
Alexander Barton [Tue, 28 Dec 2021 14:00:17 +0000 (15:00 +0100)]
axzshctl: Show hint how to restart the shell when enabling AX-ZSH

2 years agoaxzshctl wrapper: Clean up the environment when disabling AX-ZSH
Alexander Barton [Tue, 28 Dec 2021 13:59:59 +0000 (14:59 +0100)]
axzshctl wrapper: Clean up the environment when disabling AX-ZSH

2 years agoFix PATH environment after plugins ran
Alexander Barton [Tue, 28 Dec 2021 13:15:09 +0000 (14:15 +0100)]
Fix PATH environment after plugins ran

This is especially important to keep the desired search order in place
when other plugins appended/prepended paths.

2 years agoSet "path" and "manpath" as "unique" type (-U), too!
Alexander Barton [Tue, 28 Dec 2021 13:14:01 +0000 (14:14 +0100)]
Set "path" and "manpath" as "unique" type (-U), too!

2 years agoFix core plugin numbering
Alexander Barton [Tue, 28 Dec 2021 12:47:45 +0000 (13:47 +0100)]
Fix core plugin numbering

[0-4]*: Runs pre-plugins
[5-9]*: Runs post-plugins

2 years agoRefactoring: Always use "[[" (instead of "[")
Alexander Barton [Wed, 15 Dec 2021 10:31:12 +0000 (11:31 +0100)]
Refactoring: Always use "[[" (instead of "[")

No functional changes.

2 years ago12_locale: Some minor tweaks and refactoring
Alexander Barton [Wed, 15 Dec 2021 10:12:39 +0000 (11:12 +0100)]
12_locale: Some minor tweaks and refactoring

- Regular expressions aren't anchored, no .* needed at the beginning/end
- fgrep is "non standard", so use "grep -F"
- Quote unknown locale name in message ...
- And use "raw mode" (-r) for read.

2 years agohomebrew: Make sure brew(1) command actually works
Alexander Barton [Mon, 13 Dec 2021 10:00:02 +0000 (11:00 +0100)]
homebrew: Make sure brew(1) command actually works

There are wrapper scripts out there -- at least my own ;-) -- which
are available even on systems where no "real" brew is available, and
therefore this wrapper errors our when called. So not only check for
brew's existence, but if it is working when checking for plugins.

2 years agofzf: Update plugin to work on Fedora 35
Alexander Barton [Fri, 10 Dec 2021 22:18:23 +0000 (23:18 +0100)]
fzf: Update plugin to work on Fedora 35

2 years agoREADME.md: Add "integration with other projects" section
Alexander Barton [Fri, 10 Dec 2021 20:54:33 +0000 (21:54 +0100)]
README.md: Add "integration with other projects" section

And mention Powerlevel10k support!

2 years agoREADME.md: Reformat the file a bit
Alexander Barton [Fri, 10 Dec 2021 20:53:52 +0000 (21:53 +0100)]
README.md: Reformat the file a bit

- Add more links, as references at the end of the document.
- Add link to our own GitHub "homepage".
- Emphasis that you really should use Git to install AX-ZSH!
- Fix link to zdharma-continuum/fast-syntax-highlighting

2 years ago2021. Still ... ;)
Alexander Barton [Thu, 9 Dec 2021 21:28:45 +0000 (22:28 +0100)]
2021. Still ... ;)

2 years agohomebrew: Fix detection of Homebrew command completions
Alexander Barton [Wed, 8 Dec 2021 21:10:26 +0000 (22:10 +0100)]
homebrew: Fix detection of Homebrew command completions

2 years agoneofetch: Implement axzsh_neofetch() function
Alexander Barton [Sat, 4 Dec 2021 13:01:02 +0000 (14:01 +0100)]
neofetch: Implement axzsh_neofetch() function

This function can be used to call neofetch(1) exactly as the plugin does.

2 years agoEnhance handling of the Homebrew environment
Alexander Barton [Sat, 4 Dec 2021 12:57:41 +0000 (13:57 +0100)]
Enhance handling of the Homebrew environment

- Call "brew shellenv" to set all relevant environment variables,
- and use "$HOMEBREW_PREFIX" when looking for installed files.

2 years agoRefactoring: Use "axzsh_" prefix (instead of "ax_") for all functions & variables
Alexander Barton [Sat, 4 Dec 2021 12:37:17 +0000 (13:37 +0100)]
Refactoring: Use "axzsh_" prefix (instead of "ax_") for all functions & variables

New function names:
- axzsh_hostname_prompt_root()
- axzsh_hostname_prompt_yn()
- axzsh_logname_prompt_root()
- axzsh_logname_prompt_yn()
- axzsh_plugin_fnc()
- axzsh_plugin_init()
- axzsh_prompt()
- axzsh_vcs_prompt()
- _axzsh_ssh_prompt()

New array names:
- axzsh_hostname_prompt_functions
- axzsh_logname_prompt_functions
- axzsh_vcs_prompt_functions

2 years agostd_functions: Add (very simple) "open" function
Alexander Barton [Wed, 25 Aug 2021 14:05:17 +0000 (16:05 +0200)]
std_functions: Add (very simple) "open" function

Right now, this supports macOS (Darwin), Cygwin and Linux.

2 years ago40_path: Add Go and Cargo bin paths to $PATH when they exist
Alexander Barton [Sat, 24 Jul 2021 11:33:33 +0000 (13:33 +0200)]
40_path: Add Go and Cargo bin paths to $PATH when they exist

2 years agogit: Add "gsta" and "gstp" aliases for Git stash push/pop
Alexander Barton [Sat, 24 Jul 2021 11:24:26 +0000 (13:24 +0200)]
git: Add "gsta" and "gstp" aliases for Git stash push/pop

2 years ago30_env.ax-io: Try to use a user-specific subfolder when TMPDIR is not set
Alexander Barton [Mon, 5 Jul 2021 20:01:13 +0000 (22:01 +0200)]
30_env.ax-io: Try to use a user-specific subfolder when TMPDIR is not set

2 years agogit: Bring aliases in line with OhMyZsh (and extend our list!)
Alexander Barton [Tue, 1 Jun 2021 13:00:41 +0000 (15:00 +0200)]
git: Bring aliases in line with OhMyZsh (and extend our list!)

Changed:
* gc: Add "--verbose"
* gd: Remove "--patch-with-stat"
* gst: Use default format

Removed:
* gdc: Deprecated in OhMyZsh ...

New:
* g
* gapa
* gdca
* gdcw
* gdw
* gf
* gfa
* gl
* gp
* gsb
* gsh
* gss

2 years agoaxzshctl: Allow dashes in OhMyZsh plugin names
Alexander Barton [Fri, 30 Apr 2021 11:26:29 +0000 (13:26 +0200)]
axzshctl: Allow dashes in OhMyZsh plugin names

2 years agoGreatly enhance the README.md file
Alexander Barton [Fri, 30 Apr 2021 11:10:57 +0000 (13:10 +0200)]
Greatly enhance the README.md file

2 years agoAdd support for remote OhMyZsh plugins
Alexander Barton [Fri, 30 Apr 2021 11:03:19 +0000 (13:03 +0200)]
Add support for remote OhMyZsh plugins

OhMyZsh plugins are referenced by an "@ohmyzsh/<name>" identifier, and
the OhMyZsh source tree is cloned with Git as needed.

2 years agostd_aliases: Use "last -aw" for "lastf" and "lasth" aliases
Alexander Barton [Fri, 30 Apr 2021 11:02:28 +0000 (13:02 +0200)]
std_aliases: Use "last -aw" for "lastf" and "lasth" aliases

2 years agoaxzshctl: Fix syntax of "set-theme" in help output
Alexander Barton [Fri, 30 Apr 2021 10:58:35 +0000 (12:58 +0200)]
axzshctl: Fix syntax of "set-theme" in help output

2 years agoinstall.sh: Correctly report an error when "zsh" is not found
Alexander Barton [Fri, 30 Apr 2021 10:57:30 +0000 (12:57 +0200)]
install.sh: Correctly report an error when "zsh" is not found

3 years agofzf: Newer Debian/Ubuntu packages use a different folder layout
Alexander Barton [Thu, 8 Apr 2021 08:58:32 +0000 (10:58 +0200)]
fzf: Newer Debian/Ubuntu packages use a different folder layout

3 years agogoogler: Use "g0" alias to not clash with OhMyZsh "g" alias for "git"
Alexander Barton [Fri, 2 Apr 2021 18:33:57 +0000 (20:33 +0200)]
googler: Use "g0" alias to not clash with OhMyZsh "g" alias for "git"

3 years agoaxzshctl: Validate plugin names in EnablePlugin()
Alexander Barton [Mon, 29 Mar 2021 17:49:48 +0000 (19:49 +0200)]
axzshctl: Validate plugin names in EnablePlugin()

3 years agoax.zsh: Put new cache files in place only after they are complete
Alexander Barton [Mon, 29 Mar 2021 17:48:29 +0000 (19:48 +0200)]
ax.zsh: Put new cache files in place only after they are complete

3 years agoax.zsh: Don't call mkdir(1) unconditionally
Alexander Barton [Mon, 29 Mar 2021 17:46:32 +0000 (19:46 +0200)]
ax.zsh: Don't call mkdir(1) unconditionally

3 years agoax.zsh: Fix comment, output is only allowed in "ax-io" stage!
Alexander Barton [Mon, 29 Mar 2021 17:46:24 +0000 (19:46 +0200)]
ax.zsh: Fix comment, output is only allowed in "ax-io" stage!

3 years agoaxzshctl: Only auto-complete enabled plugins on "disable-plugin" subcommand
Alexander Barton [Mon, 29 Mar 2021 17:43:40 +0000 (19:43 +0200)]
axzshctl: Only auto-complete enabled plugins on "disable-plugin" subcommand

3 years agoaxzshctl: Make UpdatePluginCache() less verbose by default
Alexander Barton [Tue, 23 Mar 2021 08:44:37 +0000 (09:44 +0100)]
axzshctl: Make UpdatePluginCache() less verbose by default

3 years agoaxzshctl: Delete ZSH cache folder on "update-caches", too
Alexander Barton [Mon, 22 Mar 2021 21:21:29 +0000 (22:21 +0100)]
axzshctl: Delete ZSH cache folder on "update-caches", too

3 years ago50_completion: Try to find all available completion functions
Alexander Barton [Mon, 22 Mar 2021 21:20:09 +0000 (22:20 +0100)]
50_completion: Try to find all available completion functions

Try to add all folders possibly containing completion functions to the
fpath before calling compinit. See <https://github.com/ohmyzsh/ohmyzsh/issues/4614>
for a discussion of this topic, for example. It boils down to:

1. We have to call compinit early,
2. but plugins can add completions later, that won't be found ...

3 years agoGet rid of "bash_completion" default plugin
Alexander Barton [Mon, 22 Mar 2021 20:58:34 +0000 (21:58 +0100)]
Get rid of "bash_completion" default plugin

The "bashcompinit" system results in way too many errors, and the
dysfunctional bash completions even shadow working ZSH completion
functions way too often. This makes no sense. Get rid of it!

3 years agogoogler: Show browser output by default
Alexander Barton [Sun, 21 Mar 2021 16:37:12 +0000 (17:37 +0100)]
googler: Show browser output by default

3 years agoNew "browser_select" plugin
Alexander Barton [Sun, 21 Mar 2021 16:36:16 +0000 (17:36 +0100)]
New "browser_select" plugin

3 years agoeditor_select: Mark plugin as optional
Alexander Barton [Sun, 21 Mar 2021 16:35:35 +0000 (17:35 +0100)]
editor_select: Mark plugin as optional

3 years agogoogler: Limit number of results depending on LINES available
Alexander Barton [Sun, 21 Mar 2021 16:11:48 +0000 (17:11 +0100)]
googler: Limit number of results depending on LINES available

3 years agoeditor_select: Alias "zshrnv" in non-login shells, too!
Alexander Barton [Sun, 21 Mar 2021 16:11:01 +0000 (17:11 +0100)]
editor_select: Alias "zshrnv" in non-login shells, too!

3 years agoAdd new "starship" theme wrapper
Alexander Barton [Sun, 21 Mar 2021 11:44:52 +0000 (12:44 +0100)]
Add new "starship" theme wrapper

See <https://starship.rs>.

Note: This is a wrapper for the starship(1) command to integrate it into
AX-ZSH. You still need it installed first!

3 years agossh: Slightly enhance file comments
Alexander Barton [Sat, 6 Mar 2021 14:31:07 +0000 (15:31 +0100)]
ssh: Slightly enhance file comments

3 years ago30_env.ax-io: Create individual XDG_RUNTIME_DIR, when not set
Alexander Barton [Sat, 6 Mar 2021 14:30:31 +0000 (15:30 +0100)]
30_env.ax-io: Create individual XDG_RUNTIME_DIR, when not set

3 years ago30_env.ax-io: Use mktemp(3) to detect default remporary directory
Alexander Barton [Sat, 6 Mar 2021 14:29:50 +0000 (15:29 +0100)]
30_env.ax-io: Use mktemp(3) to detect default remporary directory

3 years agocheat: Add c() function for browsing cht.sh when fzf(1) is available
Alexander Barton [Sun, 17 Jan 2021 21:03:04 +0000 (22:03 +0100)]
cheat: Add c() function for browsing cht.sh when fzf(1) is available

3 years agoHandle plugins with ".plugin.zsh" folder suffix
Alexander Barton [Sun, 17 Jan 2021 20:40:15 +0000 (21:40 +0100)]
Handle plugins with ".plugin.zsh" folder suffix

3 years agoaxzshctl: Handle GitHub plugins with dots (".") in their names
Alexander Barton [Sun, 17 Jan 2021 20:38:08 +0000 (21:38 +0100)]
axzshctl: Handle GitHub plugins with dots (".") in their names

3 years agoNew "autojump" plugin
Alexander Barton [Sun, 17 Jan 2021 19:42:39 +0000 (20:42 +0100)]
New "autojump" plugin

3 years agoaxzshctl: Bring Git updates in line and show logs
Alexander Barton [Sun, 17 Jan 2021 18:53:00 +0000 (19:53 +0100)]
axzshctl: Bring Git updates in line and show logs

Bring Git update commands for AX-ZSH and plugins in line (same error
handling), and show one-line summaries of commits pulled in.

3 years ago01_zprofile.zshrc: Don't forget the "ax-io" stage!
Alexander Barton [Sat, 26 Dec 2020 20:00:09 +0000 (21:00 +0100)]
01_zprofile.zshrc: Don't forget the "ax-io" stage!

3 years ago01_zprofile.zshrc: Don't duplicate code, call axzsh_handle_stage()
Alexander Barton [Sat, 26 Dec 2020 19:59:09 +0000 (20:59 +0100)]
01_zprofile.zshrc: Don't duplicate code, call axzsh_handle_stage()

3 years agoCorrectly mark variables as local in axzsh_handle_stage()
Alexander Barton [Sat, 26 Dec 2020 19:57:39 +0000 (20:57 +0100)]
Correctly mark variables as local in axzsh_handle_stage()

3 years agoMove 3rd-party integration into axzsh_handle_stage()
Alexander Barton [Sat, 26 Dec 2020 19:55:20 +0000 (20:55 +0100)]
Move 3rd-party integration into axzsh_handle_stage()

3 years agoThe "debug mode" does not depend on "AXZSH" being unset
Alexander Barton [Sat, 26 Dec 2020 19:52:52 +0000 (20:52 +0100)]
The "debug mode" does not depend on "AXZSH" being unset

3 years agoSplit 30_env into "ax-io" and "zshrc" stage
Alexander Barton [Sat, 26 Dec 2020 19:49:51 +0000 (20:49 +0100)]
Split 30_env into "ax-io" and "zshrc" stage

We want it to fix TMPDIR etc. in non-login shells, too! And this makes
sense, as there are some startup sequences (for example when using
screen(1) or tmux(1)) which result in br0ken TMPDIR settings ..

3 years agoaxzshctl set-theme completion: Look for all types in custom_themes/ and rpositories
Alexander Barton [Sat, 26 Dec 2020 18:38:32 +0000 (19:38 +0100)]
axzshctl set-theme completion: Look for all types in custom_themes/ and rpositories

3 years agocalendar: Check for successful invocation, not only presence
Alexander Barton [Mon, 7 Dec 2020 14:42:50 +0000 (15:42 +0100)]
calendar: Check for successful invocation, not only presence

3 years ago30_env: Tweak TMPDIR handling, no longer bother with TMP
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.

3 years 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!

3 years 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!

3 years 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.

3 years 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!

3 years 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"

3 years 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