]>
arthur.barton.de Git - ax-zsh.git/log
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
Alexander Barton [Sat, 21 Mar 2020 18:05:47 +0000 (19:05 +0100)]
std_aliases: Remove "0", quite useless
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.
Alexander Barton [Sat, 21 Mar 2020 13:07:35 +0000 (14:07 +0100)]
axemoji: Use nicer emoji for righthand error notice
Alexander Barton [Sat, 21 Mar 2020 13:06:43 +0000 (14:06 +0100)]
Keep $AXZSH variable in axttyinfo alias
Alexander Barton [Sat, 15 Feb 2020 16:40:29 +0000 (17:40 +0100)]
axzshctl: Don't use verbose mode for file operations (ln, rm)
Alexander Barton [Sat, 15 Feb 2020 16:39:12 +0000 (17:39 +0100)]
axzshctl: Don't show title for "UpdatePluginCache" when called internally
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.
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.
Alexander Barton [Fri, 7 Feb 2020 19:30:54 +0000 (20:30 +0100)]
fzf: Look in BSD-specific paths, too!
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.
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.
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.
Alexander Barton [Sat, 28 Dec 2019 22:05:17 +0000 (23:05 +0100)]
axzshctl: Create shallow clones of remote 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.
Alexander Barton [Sat, 7 Dec 2019 00:45:47 +0000 (01:45 +0100)]
docker-machine: Use and test for "default" machine
Alexander Barton [Sat, 30 Nov 2019 17:41:47 +0000 (18:41 +0100)]
pdfman: Use completions for "man"
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".
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"!
Alexander Barton [Sat, 2 Nov 2019 20:55:24 +0000 (21:55 +0100)]
50_completion: Enable group descriptions
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 ...
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!
Alexander Barton [Sat, 2 Nov 2019 15:51:19 +0000 (16:51 +0100)]
Add new "bash_completion" plugin
Alexander Barton [Sat, 2 Nov 2019 15:50:18 +0000 (16:50 +0100)]
Remove most "nocorrect" settings
Alexander Barton [Thu, 5 Sep 2019 14:57:24 +0000 (16:57 +0200)]
ssh: Look for SSH "auth socket" in common locations
Alexander Barton [Wed, 21 Aug 2019 09:12:53 +0000 (11:12 +0200)]
11_terminal: "putty*" is a modern terminal
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.
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.
Alexander Barton [Tue, 28 May 2019 15:18:39 +0000 (17:18 +0200)]
ssh_secure: "Nicer" quoting, add completion aliases
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
Alexander Barton [Sun, 12 May 2019 22:37:02 +0000 (00:37 +0200)]
Fix some warnings of "markdownlint"
Alexander Barton [Sun, 12 May 2019 22:15:45 +0000 (00:15 +0200)]
editor_select: Add support for "code", "mvim", "gvim"
Alexander Barton [Sun, 12 May 2019 21:53:53 +0000 (23:53 +0200)]
New "python" plugin
Alexander Barton [Sun, 12 May 2019 21:46:26 +0000 (23:46 +0200)]
New "googler" 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
Alexander Barton [Thu, 25 Apr 2019 13:31:34 +0000 (15:31 +0200)]
less: Add support for lesspipe.sh
Alexander Barton [Mon, 22 Apr 2019 21:09:58 +0000 (23:09 +0200)]
buku: Don't set "--tacit" in "b" alias