]>
arthur.barton.de Git - ax-zsh.git/log
Alexander Barton [Tue, 28 Dec 2021 13:59:59 +0000 (14:59 +0100)]
axzshctl wrapper: Clean up the environment when disabling AX-ZSH
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.
Alexander Barton [Tue, 28 Dec 2021 13:14:01 +0000 (14:14 +0100)]
Set "path" and "manpath" as "unique" type (-U), too!
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
Alexander Barton [Wed, 15 Dec 2021 10:31:12 +0000 (11:31 +0100)]
Refactoring: Always use "[[" (instead of "[")
No functional changes.
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.
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.
Alexander Barton [Fri, 10 Dec 2021 22:18:23 +0000 (23:18 +0100)]
fzf: Update plugin to work on Fedora 35
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!
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
Alexander Barton [Thu, 9 Dec 2021 21:28:45 +0000 (22:28 +0100)]
2021. Still ... ;)
Alexander Barton [Wed, 8 Dec 2021 21:10:26 +0000 (22:10 +0100)]
homebrew: Fix detection of Homebrew command completions
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.
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.
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
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.
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
Alexander Barton [Sat, 24 Jul 2021 11:24:26 +0000 (13:24 +0200)]
git: Add "gsta" and "gstp" aliases for Git stash push/pop
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
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
Alexander Barton [Fri, 30 Apr 2021 11:26:29 +0000 (13:26 +0200)]
axzshctl: Allow dashes in OhMyZsh plugin names
Alexander Barton [Fri, 30 Apr 2021 11:10:57 +0000 (13:10 +0200)]
Greatly enhance the README.md file
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.
Alexander Barton [Fri, 30 Apr 2021 11:02:28 +0000 (13:02 +0200)]
std_aliases: Use "last -aw" for "lastf" and "lasth" aliases
Alexander Barton [Fri, 30 Apr 2021 10:58:35 +0000 (12:58 +0200)]
axzshctl: Fix syntax of "set-theme" in help output
Alexander Barton [Fri, 30 Apr 2021 10:57:30 +0000 (12:57 +0200)]
install.sh: Correctly report an error when "zsh" is not found
Alexander Barton [Thu, 8 Apr 2021 08:58:32 +0000 (10:58 +0200)]
fzf: Newer Debian/Ubuntu packages use a different folder layout
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"
Alexander Barton [Mon, 29 Mar 2021 17:49:48 +0000 (19:49 +0200)]
axzshctl: Validate plugin names in EnablePlugin()
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
Alexander Barton [Mon, 29 Mar 2021 17:46:32 +0000 (19:46 +0200)]
ax.zsh: Don't call mkdir(1) unconditionally
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!
Alexander Barton [Mon, 29 Mar 2021 17:43:40 +0000 (19:43 +0200)]
axzshctl: Only auto-complete enabled plugins on "disable-plugin" subcommand
Alexander Barton [Tue, 23 Mar 2021 08:44:37 +0000 (09:44 +0100)]
axzshctl: Make UpdatePluginCache() less verbose by default
Alexander Barton [Mon, 22 Mar 2021 21:21:29 +0000 (22:21 +0100)]
axzshctl: Delete ZSH cache folder on "update-caches", too
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 ...
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!
Alexander Barton [Sun, 21 Mar 2021 16:37:12 +0000 (17:37 +0100)]
googler: Show browser output by default
Alexander Barton [Sun, 21 Mar 2021 16:36:16 +0000 (17:36 +0100)]
New "browser_select" plugin
Alexander Barton [Sun, 21 Mar 2021 16:35:35 +0000 (17:35 +0100)]
editor_select: Mark plugin as optional
Alexander Barton [Sun, 21 Mar 2021 16:11:48 +0000 (17:11 +0100)]
googler: Limit number of results depending on LINES available
Alexander Barton [Sun, 21 Mar 2021 16:11:01 +0000 (17:11 +0100)]
editor_select: Alias "zshrnv" in non-login shells, too!
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!
Alexander Barton [Sat, 6 Mar 2021 14:31:07 +0000 (15:31 +0100)]
ssh: Slightly enhance file comments
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
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
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
Alexander Barton [Sun, 17 Jan 2021 20:40:15 +0000 (21:40 +0100)]
Handle plugins with ".plugin.zsh" folder suffix
Alexander Barton [Sun, 17 Jan 2021 20:38:08 +0000 (21:38 +0100)]
axzshctl: Handle GitHub plugins with dots (".") in their names
Alexander Barton [Sun, 17 Jan 2021 19:42:39 +0000 (20:42 +0100)]
New "autojump" plugin
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.
Alexander Barton [Sat, 26 Dec 2020 20:00:09 +0000 (21:00 +0100)]
01_zprofile.zshrc: Don't forget the "ax-io" 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()
Alexander Barton [Sat, 26 Dec 2020 19:57:39 +0000 (20:57 +0100)]
Correctly mark variables as local in axzsh_handle_stage()
Alexander Barton [Sat, 26 Dec 2020 19:55:20 +0000 (20:55 +0100)]
Move 3rd-party integration into axzsh_handle_stage()
Alexander Barton [Sat, 26 Dec 2020 19:52:52 +0000 (20:52 +0100)]
The "debug mode" does not depend on "AXZSH" being unset
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 ..
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
Alexander Barton [Mon, 7 Dec 2020 14:42:50 +0000 (15:42 +0100)]
calendar: Check for successful invocation, not only presence
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.
Alexander Barton [Tue, 24 Nov 2020 11:46:58 +0000 (12:46 +0100)]
Don't use $HOSTNAME or call hostname(1), use $HOST instead!
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!
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.
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!
Alexander Barton [Sun, 22 Nov 2020 23:29:35 +0000 (00:29 +0100)]
00-newline: This plugin is optional for "axzshctl check-plugins"
Alexander Barton [Sun, 22 Nov 2020 23:28:54 +0000 (00:28 +0100)]
axzshctl: Embed "ax-common" compatibility functions
Alexander Barton [Sun, 22 Nov 2020 23:19:19 +0000 (00:19 +0100)]
axzshctl check-plugins: Enhance output
Alexander Barton [Sun, 22 Nov 2020 23:16:04 +0000 (00:16 +0100)]
axzshctl check-plugins: Correctly handle "ax-io" plugins
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 .
Alexander Barton [Sun, 23 Aug 2020 16:19:02 +0000 (18:19 +0200)]
iterm2: Enable use inside of tmux(1) sessions
Alexander Barton [Sun, 23 Aug 2020 16:16:07 +0000 (18:16 +0200)]
iterm2: Add iTerm 2 tools folder to search path
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.
Alexander Barton [Sun, 23 Aug 2020 15:02:38 +0000 (17:02 +0200)]
history: Introduce the clear_history() function
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)
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!
Alexander Barton [Fri, 31 Jul 2020 17:17:10 +0000 (19:17 +0200)]
Add "00-newline" plugin
Alexander Barton [Fri, 31 Jul 2020 17:09:06 +0000 (19:09 +0200)]
New "neofetch" plugin
Alexander Barton [Fri, 31 Jul 2020 17:08:56 +0000 (19:08 +0200)]
New "calendar" plugin
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.
Alexander Barton [Fri, 31 Jul 2020 17:06:57 +0000 (19:06 +0200)]
icalbuddy, remind: Create "stamp file" in XDG_CACHE_HOME
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".
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.
Alexander Barton [Sun, 12 Jul 2020 14:49:36 +0000 (16:49 +0200)]
80_local_config: Read local profile(s) in "ax-io" stage
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.
Alexander Barton [Sun, 5 Jul 2020 16:19:09 +0000 (18:19 +0200)]
axzshctl: Remove "ax-io.cache" in UpdatePluginCache(), too!
Alexander Barton [Sun, 5 Jul 2020 16:18:46 +0000 (18:18 +0200)]
11_terminal: Fix file names in file comments
Alexander Barton [Thu, 11 Jun 2020 22:01:05 +0000 (00:01 +0200)]
axzshctl: Add --version
Alexander Barton [Thu, 11 Jun 2020 21:50:17 +0000 (23:50 +0200)]
axzshctl: Show help on stderr, add "help" alias
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.
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>
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.
Alexander Barton [Thu, 11 Jun 2020 12:01:17 +0000 (14:01 +0200)]
ax.zsh: Refactor "stage initialization" into new axzsh_handle_stage() function
Alexander Barton [Sun, 7 Jun 2020 15:23:00 +0000 (17:23 +0200)]
iterm2: Update to iTerm2 shell integration v11
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" ...
Alexander Barton [Sun, 24 May 2020 19:57:56 +0000 (21:57 +0200)]
axzshctl: Look harder for themes in remote modules
Alexander Barton [Sun, 24 May 2020 19:27:30 +0000 (21:27 +0200)]
axzshctl: Use the enhanced test function of zsh
Alexander Barton [Sun, 24 May 2020 19:13:05 +0000 (21:13 +0200)]
New "travis" plugin
Alexander Barton [Wed, 22 Apr 2020 09:23:34 +0000 (11:23 +0200)]
New "hstr" plugin
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
Alexander Barton [Sun, 29 Mar 2020 23:19:28 +0000 (01:19 +0200)]
New "fzy" plugin