]>
arthur.barton.de Git - ax-zsh.git/log
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
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 ...
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.
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!
Alexander Barton [Mon, 22 Apr 2019 11:44:22 +0000 (13:44 +0200)]
icalbuddy, remind: Don't show when "hush login" is active
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/>
Alexander Barton [Tue, 5 Mar 2019 22:23:35 +0000 (23:23 +0100)]
New "buku" plugin
Alexander Barton [Tue, 5 Mar 2019 22:23:05 +0000 (23:23 +0100)]
New "trash" plugin (for macOS)
Alexander Barton [Fri, 22 Feb 2019 21:14:23 +0000 (22:14 +0100)]
correction: Ignore dot files, don't offer them as a correction
Alexander Barton [Fri, 22 Feb 2019 21:08:29 +0000 (22:08 +0100)]
New "command-not-found" plugin
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.
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)
Alexander Barton [Wed, 6 Feb 2019 23:17:51 +0000 (00:17 +0100)]
std_aliases: Add some aliases for fast directory changes
Alexander Barton [Wed, 6 Feb 2019 22:42:42 +0000 (23:42 +0100)]
virtualenv: Add support for "pipenv"
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 ...
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.
Alexander Barton [Tue, 5 Feb 2019 21:32:38 +0000 (22:32 +0100)]
git: Return prompt fragments only inside of a Git repository
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.
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
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.
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.
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.
Alexander Barton [Tue, 5 Feb 2019 19:13:13 +0000 (20:13 +0100)]
axzshctl: No need to regenerate caches on theme change
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!
Alexander Barton [Sun, 3 Feb 2019 22:18:41 +0000 (23:18 +0100)]
Don't include theme into the cache, only the "source" command
This was the case earlier on, before moving this logic into ax.zsh,
and is required by some more complex themes like Powerlevel9k (that
fail to find/include some other resource file otherwise ...).
Alexander Barton [Sun, 3 Feb 2019 21:52:53 +0000 (22:52 +0100)]
axzshctl: Look for themes in the "custom_themes" folder, too
And update the completion script accordingly.
Alexander Barton [Sun, 3 Feb 2019 21:51:49 +0000 (22:51 +0100)]
Include the theme into the global context
This is required by some (OhMyZsh) themes ...
Alexander Barton [Sun, 3 Feb 2019 16:51:25 +0000 (17:51 +0100)]
git: Add aliases for git_prompt_status
This function is defined by OhMyZsh and used by some themes.
Alexander Barton [Sun, 3 Feb 2019 16:50:07 +0000 (17:50 +0100)]
Implement FG, BG and FX arrays, compatible to OhMyZsh & spectrum
We already had a "fx" array, but this should be "FX" ...