]>
arthur.barton.de Git - ax-zsh.git/log
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" ...
Alexander Barton [Sun, 3 Feb 2019 15:39:25 +0000 (16:39 +0100)]
Implement axzshctl function, restarting the current shell
The new axzshctl function, which shadows the axzshctl shell script,
tries to detect when there potentially were changes to the setup and
restarts the running shell in that case, bringing the new configuration
in effect immediately.
Now the user doesn't have to restart his shell manually any more.
Alexander Barton [Sun, 3 Feb 2019 15:36:47 +0000 (16:36 +0100)]
axzshctl set-theme: Don't remove theme link first
Force creating the symlink, overwriting a possibly already existing one.
This prevents us from having no theme link at all, if something goes
wrong ;-)
Alexander Barton [Sun, 3 Feb 2019 15:35:45 +0000 (16:35 +0100)]
ax.zsh: Correctly ignore OhMyZSH "theme plugins"
Alexander Barton [Sun, 3 Feb 2019 15:34:47 +0000 (16:34 +0100)]
.gitignore: Ignore ".tags" files
Alexander Barton [Sun, 3 Feb 2019 13:33:25 +0000 (14:33 +0100)]
git: Add aliases for parse_git_dirty & git_prompt_info
Those functions are defined by OhMyZsh and used by some themes.
Alexander Barton [Sun, 3 Feb 2019 13:33:25 +0000 (14:33 +0100)]
cheat: Don't shadow real command (if any), and use pagination
Alexander Barton [Fri, 1 Feb 2019 08:44:11 +0000 (09:44 +0100)]
New "gcc" plugin
At the moment, this only enables colored compiler warning messages.
Alexander Barton [Sun, 9 Dec 2018 19:35:10 +0000 (20:35 +0100)]
40_path: Look for Linuxbrew
Look for Linuxbrew (http://linuxbrew.sh) and adjust PATH and MANPATH,
when found.
Alexander Barton [Sun, 9 Dec 2018 19:34:06 +0000 (20:34 +0100)]
20_home: PATH is handled in 40_path
Remove duplicate code.
Alexander Barton [Sun, 4 Nov 2018 13:51:16 +0000 (14:51 +0100)]
virtualenv: Mark this plugin as "optional"
Alexander Barton [Sun, 4 Nov 2018 13:49:45 +0000 (14:49 +0100)]
Revert 'New "venv" plugin'
The "venv" plugin basically does the same than the "virtualenv" plugin,
but the latter searches more paths and has better documentation.
I must have been blind when adding this ...
This reverts commit
f24d669e4c6014e9db8dc98a714d19f66ff1ba2d .
Alexander Barton [Wed, 12 Sep 2018 14:09:35 +0000 (16:09 +0200)]
fzf: Update for new Debian package
Alexander Barton [Tue, 28 Aug 2018 07:55:45 +0000 (09:55 +0200)]
New "venv" plugin
This can be used to activate Python "virtual venv environments", but
is basically language agnostic.
Alexander Barton [Tue, 28 Aug 2018 07:52:58 +0000 (09:52 +0200)]
New "colormake" plugin
Alexander Barton [Mon, 20 Aug 2018 12:44:20 +0000 (14:44 +0200)]
axzshctl: Fix broken test for dumb terminals
Alexander Barton [Tue, 7 Aug 2018 12:16:28 +0000 (14:16 +0200)]
New "go" plugin
Alexander Barton [Mon, 23 Apr 2018 21:40:07 +0000 (23:40 +0200)]
axzshctl: Only rebuild cache when action succeeded
Alexander Barton [Mon, 23 Apr 2018 21:39:14 +0000 (23:39 +0200)]
New "virtualenv" plugin
Alexander Barton [Tue, 13 Feb 2018 14:23:42 +0000 (15:23 +0100)]
iterm2: Try to load user-local shell integration first
And only fall back to ax-zsh included version when not found.
Alexander Barton [Tue, 13 Feb 2018 14:23:19 +0000 (15:23 +0100)]
10_keyboard: Add C-x,C-p shortcut for "push-line"
Alexander Barton [Sun, 11 Feb 2018 10:12:23 +0000 (11:12 +0100)]
Enhance support for remote plugins with embedded themes
Enable a theme in a remote plugins automatically when cloning and
enabling the plugin itself, and add support to enable such themes
using the regular "axzshctl set-theme" command.
Alexander Barton [Mon, 18 Dec 2017 13:15:09 +0000 (14:15 +0100)]
gnupg: Suppress messages of "gpg-connect-agent"
Otherwise, every startup outputs some ugly messages ...
Alexander Barton [Mon, 20 Nov 2017 23:32:47 +0000 (00:32 +0100)]
axzshctl: Use internal ax_msg() on "dumb" terminals
Alexander Barton [Mon, 20 Nov 2017 23:28:47 +0000 (00:28 +0100)]
Don't load themes and ext. plugins on "dumb" terminals
These external (and modern?) plugins most probably don't expect such an
unusual old terminal configuration and don't behave well (echo color
sequences, for example). Therefore we DON'T load any external plugins at
all when running on such a terminal: this results in reduced/disabled
functionality, but hopefully in readable output ...
And the same is true for any themes, included or external: we disable
them and fallback to an included very simple but sane default prompt.
Alexander Barton [Mon, 30 Oct 2017 00:11:50 +0000 (01:11 +0100)]
gnupg: Don't fiddle with gpg-agent that much
This isn't necessary with GnuPG 2.1.x and newer.
Alexander Barton [Sat, 7 Oct 2017 15:30:53 +0000 (17:30 +0200)]
30_env: Make sure "TZ" is set, when possible
Alexander Barton [Fri, 27 Oct 2017 18:41:10 +0000 (20:41 +0200)]
git: Update "git gd[c]" aliases to include patch statistics
Alexander Barton [Sat, 30 Sep 2017 20:27:11 +0000 (22:27 +0200)]
correction: Ignore pgrep and pkill
Alexander Barton [Sat, 30 Sep 2017 20:26:42 +0000 (22:26 +0200)]
ssh: Add "verbose" option to ssh-autoadd function
Alexander Barton [Sat, 30 Sep 2017 20:24:30 +0000 (22:24 +0200)]
New "ssh_autoadd" plugin
Automatically call "ssh-autoadd" for new shell sessions, making sure
that SSH keys are available.
Alexander Barton [Mon, 18 Sep 2017 22:09:43 +0000 (00:09 +0200)]
40_path: Enhance MANPATH setting when manpath(1) isn't available
Alexander Barton [Mon, 18 Sep 2017 22:09:08 +0000 (00:09 +0200)]
40_path: Add user-local ~/sbin and ~/bin directories
Alexander Barton [Mon, 18 Sep 2017 20:45:02 +0000 (22:45 +0200)]
correction: Don't check for always-available commands
Alexander Barton [Mon, 18 Sep 2017 20:37:23 +0000 (22:37 +0200)]
correction: Don't correct some more commands
Alexander Barton [Wed, 9 Aug 2017 10:05:13 +0000 (12:05 +0200)]
40_path: Add user-local Ruby gem paths
Alexander Barton [Sat, 8 Jul 2017 22:54:17 +0000 (00:54 +0200)]
std_env: Set TIMEFMT and WATCHFMT variables
Alexander Barton [Sat, 8 Jul 2017 22:53:42 +0000 (00:53 +0200)]
std_options: Fix login/logout "watch list"
Alexander Barton [Sat, 8 Jul 2017 22:16:53 +0000 (00:16 +0200)]
correction: Enhance correction prompt with colors
Alexander Barton [Sat, 8 Jul 2017 21:17:38 +0000 (23:17 +0200)]
Add and streamline comments for prompt variables
Alexander Barton [Sat, 8 Jul 2017 21:17:06 +0000 (23:17 +0200)]
axemoji.axzshtheme: Set PS4 like the "ax" theme does
Alexander Barton [Sat, 8 Jul 2017 20:36:34 +0000 (22:36 +0200)]
11_terminal: Implement a cache for axzsh_is_widechar_terminal()
Alexander Barton [Sat, 8 Jul 2017 19:50:58 +0000 (21:50 +0200)]
iterm2: Correctly handle empty ~/.iterm2 folder
Alexander Barton [Fri, 7 Jul 2017 20:05:02 +0000 (22:05 +0200)]
Disable axzsh_is_widechar_terminal() in "plugin check" mode
Alexander Barton [Fri, 7 Jul 2017 19:58:19 +0000 (21:58 +0200)]
New "cheat" default plugin
This plugin implements a "cheat" function and uses http://cheat.sh
to download cheat sheet information. It supports curl(1) as well as
wget(1) and uses the "monokai" theme.
Alexander Barton [Fri, 7 Jul 2017 17:55:48 +0000 (19:55 +0200)]
Implement "axttyinfo" command
Alexander Barton [Fri, 7 Jul 2017 17:18:15 +0000 (19:18 +0200)]
11_terminal: Make axzsh_is_widechar_terminal() safer
Sometimes there were leftover artifacts of the escape sequence visible
in screen(1) and tmux(1), but not always. Anyways, with the splitted
echoing of the escape sequence, at least I wasn't able to reproduce it
any more, so hopefully this fixes the problem for everybody.
Alexander Barton [Thu, 6 Jul 2017 20:55:35 +0000 (22:55 +0200)]
Implement new axzsh_is_widechar_terminal() function
This function tries to detect if the current terminal can display "wide
characters" or not.
Idea:
<https://unix.stackexchange.com/questions/184345/detect-how-much-of-unicode-my-terminal-supports-even-through-screen>
At the moment, this function is used by the "axemoji" theme and the
default "right side error prompt" to not use wide characters that would
destroy the layout of the terminal used.
Alexander Barton [Thu, 6 Jul 2017 20:51:02 +0000 (22:51 +0200)]
11_terminal: Fix shellcheck(1) warning
Alexander Barton [Sun, 2 Jul 2017 12:07:30 +0000 (14:07 +0200)]
axemoji.axzshtheme: Disable it on incompatible terminals
Disable it on Hyper (https://hyper.is) for now.
Alexander Barton [Mon, 19 Jun 2017 21:18:26 +0000 (23:18 +0200)]
12locale: Make sure that LANG and LC_MESSAGES are valid
Make sure that LANG and LC_MESSAGES are either unset or set to something
sane, that is, follow the "xx_ZZ.*" syntax.
Alexander Barton [Mon, 19 Jun 2017 21:11:16 +0000 (23:11 +0200)]
iterm2: Fix logic when to activate plugin
Silly me ... :-/
Alexander Barton [Mon, 19 Jun 2017 12:59:00 +0000 (14:59 +0200)]
iterm2: Update shell integration to version 5
And add more prerequisite (redundancy) checks.
Alexander Barton [Tue, 18 Apr 2017 22:29:58 +0000 (00:29 +0200)]
axemoji.axzshtheme: Fix wording of a file comment
Thanks Götz!
Alexander Barton [Tue, 18 Apr 2017 22:29:36 +0000 (00:29 +0200)]
2017! :-)
Alexander Barton [Sat, 15 Apr 2017 22:41:34 +0000 (00:41 +0200)]
30_hostname: Validate SHORT_HOST variable
Old(er) versions of hostnamectl(1) don't support the "--pretty"
parameter but output verbose text showing all information. So
validate the SHORT_HOST variable afterwards and unset it again
when it contains ":" characters: then the fallback is used.
Tested with hostnamectl(1) of systemd 204.
Alexander Barton [Fri, 14 Apr 2017 23:05:47 +0000 (01:05 +0200)]
axemoji.axzshtheme: Fix spacing in RPS1
Alexander Barton [Fri, 14 Apr 2017 12:44:19 +0000 (14:44 +0200)]
fzf: Look for fzf(1) in /opt/fzf, too
Alexander Barton [Fri, 14 Apr 2017 12:43:52 +0000 (14:43 +0200)]
Try to load Oh My ZSH plugins with "zsh-" prefix stripped
Alexander Barton [Fri, 14 Apr 2017 11:35:55 +0000 (13:35 +0200)]
axemoji.axzshtheme: Respect emoji spacing for RPS1, too
Alexander Barton [Fri, 14 Apr 2017 11:35:27 +0000 (13:35 +0200)]
axemoji.axzshtheme: No spacing needed on VTE-based terminals
Alexander Barton [Thu, 13 Apr 2017 21:52:38 +0000 (23:52 +0200)]
axemojy.axzshtheme: Add support for "~/.system_emoji" file
And enhance the support for non-UTF8 terminals.
Alexander Barton [Mon, 10 Apr 2017 17:00:15 +0000 (19:00 +0200)]
50_axzsh: Fix completion of theme names
Alexander Barton [Mon, 10 Apr 2017 16:37:43 +0000 (18:37 +0200)]
50_prompt: Mark more variables as local & internal
Alexander Barton [Mon, 10 Apr 2017 16:11:28 +0000 (18:11 +0200)]
New "axemoji" theme
Alexander Barton [Mon, 10 Apr 2017 11:18:32 +0000 (13:18 +0200)]
ax.zsh: Add function paths to axzsh_fpath[] in cache files, too!
Alexander Barton [Mon, 10 Apr 2017 11:17:48 +0000 (13:17 +0200)]
ax.zsh: Use ax_plugin_init() instead of init()
Don't clobber the global namespace, think of 3rd party plugins,
for example.
Alexander Barton [Mon, 10 Apr 2017 11:15:55 +0000 (13:15 +0200)]
axzshctl: Add "update-caches" command
Alexander Barton [Mon, 10 Apr 2017 11:01:43 +0000 (13:01 +0200)]
axzshctl: Regenerate plugin cache, not only drop it
Alexander Barton [Mon, 10 Apr 2017 09:03:39 +0000 (11:03 +0200)]
keychain: Use absolute path to source keychain.zshrc
Alexander Barton [Mon, 10 Apr 2017 09:03:02 +0000 (11:03 +0200)]
ssh: Make sure that XDG_RUNTIME_DIR is set & valid
Alexander Barton [Fri, 7 Apr 2017 19:42:49 +0000 (21:42 +0200)]
Cache: Read "zprofile" in the correct context in "zshrc" stage
When in the "zshrc" stage, make sure that the "zprofile" stage has
already been handled. This uses the "01_zprofile" plugin which is used
in the "zshrc.cache" file itself as well, but can't be used successfully
there because it becomes sourced inside of a ZSH function; so we have to
source it in the global context manually ...
And use the cache "zprofile.cache" in the "01_zprofile" plugin, when
available.
Alexander Barton [Fri, 7 Apr 2017 19:37:32 +0000 (21:37 +0200)]
Debug mode: Don't test for ~/.axzsh.debug but for $AXZSH_DEBUG
Alexander Barton [Fri, 7 Apr 2017 19:29:53 +0000 (21:29 +0200)]
ax.zsh: Don't clobber global namespace with function variables
Alexander Barton [Fri, 7 Apr 2017 19:27:54 +0000 (21:27 +0200)]
Update copyright notices for 2017 ;-)
Alexander Barton [Mon, 3 Apr 2017 17:12:59 +0000 (19:12 +0200)]
Implement caching of active plugins
Alexander Barton [Fri, 7 Apr 2017 12:49:24 +0000 (14:49 +0200)]
homebrew: Define the result code explicitly
The return code shouldn't depend on the availability of the ZSH
completion scripts!
Alexander Barton [Fri, 7 Apr 2017 12:48:01 +0000 (14:48 +0200)]
gnupg: It is ok to have gpg2 only (no gpg binary at all)
When gpp2 is available only, we already create an alias for "gpg" to
it, so it definitely is ok to have no "gpg" binary at all.
Alexander Barton [Tue, 28 Mar 2017 20:41:42 +0000 (22:41 +0200)]
gnupg: Remove debug output ...
Alexander Barton [Sat, 25 Mar 2017 21:56:54 +0000 (22:56 +0100)]
gnupg: Setup (reuse/initialize) GnuPG agent
Alexander Barton [Sat, 25 Mar 2017 21:56:08 +0000 (22:56 +0100)]
ssh-pagent: Slightly enhance README.md
Alexander Barton [Fri, 17 Mar 2017 22:11:04 +0000 (23:11 +0100)]
icalbuddy, remind: Don't run for "axzshctl check-plugins"
Alexander Barton [Fri, 17 Mar 2017 22:10:20 +0000 (23:10 +0100)]
axzshctl check-plugins: Set AXZSH_PLUGIN_CHECK=1 for the whole shell
Alexander Barton [Thu, 16 Mar 2017 15:01:56 +0000 (16:01 +0100)]
New "cygwin" plugin
Cygwin-specific settings. For now, add some Windows paths to the
Cygwin/ZSH search $PATH.
Alexander Barton [Thu, 16 Mar 2017 14:59:33 +0000 (15:59 +0100)]
12_locale: Cygwin lowercases encodings as well
Alexander Barton [Thu, 16 Mar 2017 14:59:04 +0000 (15:59 +0100)]
11_terminal: "cygwin" is a modern terminal
Alexander Barton [Sun, 12 Mar 2017 19:50:08 +0000 (20:50 +0100)]
New "icalbuddy" plugin
Show reminders using the icalBuddy(1) tool on shell startup, but not
more often than once every hour.
Alexander Barton [Sun, 12 Mar 2017 19:49:39 +0000 (20:49 +0100)]
Add "remind" plugin
Show reminders using the remind(1) tool on shell startup, but not more
often than once every hour.
Alexander Barton [Sun, 12 Mar 2017 17:47:48 +0000 (18:47 +0100)]
10_keyboard: Add "\C-x1" shortcut to move the cursor after the command
Alexander Barton [Sun, 12 Mar 2017 16:32:03 +0000 (17:32 +0100)]
30_hostname: Use hostnamectl(1) to get the "short" name when available
And don't test for the system type but the scutil(8) and hostnamectl(1)
command itself.
Alexander Barton [Sun, 12 Mar 2017 16:11:49 +0000 (17:11 +0100)]
12_locale: Automatically set LANGUAGE when possible & useful
Alexander Barton [Sun, 12 Mar 2017 16:08:05 +0000 (17:08 +0100)]
12_locale: Detect and revert auto-correction of LC_* variables
Some systems (tested with macOS 10.12) auto-correct the output of LC_xxx
variables when using the locale(1) tool and the locale isn't supported:
$ LANG=de locale
LC_MESSAGES="de"
vs.
$ LANG=de locale
LC_MESSAGES="C"
So try to detect and revert this.
Alexander Barton [Sun, 12 Mar 2017 16:01:38 +0000 (17:01 +0100)]
12_locale: Only Linux seems to lowercase & transform the encoding
At least macOS and FreeBSD use the "raw" form.
But note that Linux uses the raw from as well for the "C.UTF-8" locale
and not the transformed "C.utf8", so add an exception for this case.
Alexander Barton [Sun, 12 Mar 2017 14:46:29 +0000 (15:46 +0100)]
New "12_locale" core plugin
Setup and validate locale(7) settings.
Alexander Barton [Sun, 12 Mar 2017 14:45:37 +0000 (15:45 +0100)]
Rename 10_terminal to 11_terminal to enforce ordering
First the keyboard should be set up, then the terminal.
Alexander Barton [Sat, 18 Feb 2017 17:45:41 +0000 (18:45 +0100)]
ssh_macos: Don't error out when no SSH agent is available
This can happen when su(1)'ing to an account, for example.
Alexander Barton [Sat, 18 Feb 2017 17:44:42 +0000 (18:44 +0100)]
ssh_macos: Import SSH keys from Keychain in the background
This can take quite same time (depending on the format and number of the
SSH keys), so import the keys in the background to not delay the shell
startup.