]>
arthur.barton.de Git - ax-zsh.git/log
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.
Alexander Barton [Sat, 11 Feb 2017 13:18:05 +0000 (14:18 +0100)]
ssh: Add "ssh-autoadd" command
This command load SSH keys into the SSH agent, when one is running and
doesn't have any keys loaded already.
Note: Not having an SSH agent running at all is ok as well and results
in an "success" exit code (0) as well.
Alexander Barton [Fri, 27 Jan 2017 14:57:26 +0000 (15:57 +0100)]
fzf: Support more installation locations
- Loader script in $HOME
- Shell integration in /usr/local/lib/fzf/shell
Alexander Barton [Fri, 27 Jan 2017 14:56:54 +0000 (15:56 +0100)]
fzf: Enhance detection, fail when shell integration is not found
Alexander Barton [Fri, 27 Jan 2017 14:55:53 +0000 (15:55 +0100)]
pdfman: Setup "man" alias with "nocorrect"
Alexander Barton [Fri, 27 Jan 2017 14:55:15 +0000 (15:55 +0100)]
Setup $PATH on 1st run only
Alexander Barton [Mon, 26 Dec 2016 16:36:00 +0000 (17:36 +0100)]
ssh_macos: Move to "zprofile" stage
Alexander Barton [Mon, 26 Dec 2016 16:00:39 +0000 (17:00 +0100)]
ssh_secure: Check for ssh(1) command first
Alexander Barton [Mon, 26 Dec 2016 16:00:16 +0000 (17:00 +0100)]
Add "ssh_macos“ plugin
Add SSH keys from the macOS Keychain automatically (macOS 10.12
"Sierra“ or newer).
Alexander Barton [Tue, 15 Nov 2016 13:32:42 +0000 (14:32 +0100)]
Make sure that $SHELL is set and available
And make sure that the path in which zsh(1) itself resides is included
in the search path ($PATH). This can become relevant on Cygwin for
example ...
Alexander Barton [Tue, 15 Nov 2016 13:30:18 +0000 (14:30 +0100)]
Add "ssh-pageant" plugin
Alexander Barton [Wed, 26 Oct 2016 08:38:18 +0000 (10:38 +0200)]
Add axzshctl subcommand "list-enabled"
Alexander Barton [Wed, 26 Oct 2016 08:37:43 +0000 (10:37 +0200)]
axzshctl: Make more use of ZSH variable modifiers
Alexander Barton [Wed, 26 Oct 2016 07:45:19 +0000 (09:45 +0200)]
Add "zsh-autosuggestions" plugin
Alexander Barton [Fri, 21 Oct 2016 12:37:25 +0000 (14:37 +0200)]
Add axzshctl subcommands "enable" and "disable"
Alexander Barton [Fri, 21 Oct 2016 12:36:45 +0000 (14:36 +0200)]
Try harder to detect location of the AX-ZSH installation
Alexander Barton [Tue, 30 Aug 2016 18:42:47 +0000 (20:42 +0200)]
Fix spelling in README.md
Alexander Barton [Sun, 28 Aug 2016 20:10:05 +0000 (22:10 +0200)]
10_terminal: Explicitly set SHELL to /bin/sh
Alexander Barton [Sun, 28 Aug 2016 19:33:51 +0000 (21:33 +0200)]
axzshctl: Use /usr/bin/env shebang to call zsh
This allows zsh to be anywhere in the $PATH.
Thanks to Götz Hoffart for reporting the problem!
Alexander Barton [Sat, 27 Aug 2016 22:22:50 +0000 (00:22 +0200)]
30_env: Only mkdir directories when variables weren't set already
But always set safe modes when creating them!
Reference:
<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>
Alexander Barton [Sat, 27 Aug 2016 22:17:41 +0000 (00:17 +0200)]
30_env: Fix creation of $XDG_RUNTIME_DIR directory
Alexander Barton [Sat, 27 Aug 2016 22:08:51 +0000 (00:08 +0200)]
ssh: Try to save and restore SSH environment
This allows ZSH sessions inside of screen(1) to pick up the current SSH
agent connection, for example.
Alexander Barton [Sat, 27 Aug 2016 22:07:38 +0000 (00:07 +0200)]
New "30_env" core plugin
Move setting of XDG_CACHE_HOME and ZSH_CACHE_DIR from 20_home to this
new plugin, and set XDG_RUNTIME_DIR, too.
In addition, make sure that TMPDIR is reset when it has been deleted but
TMP is available (this is the case for setgid binaries on Linux, for
example, which is quite common when using screen(1)).
Alexander Barton [Sat, 27 Aug 2016 17:08:23 +0000 (19:08 +0200)]
Allow plugins to indicate "ignored" and "optional" state
Alexander Barton [Sat, 27 Aug 2016 17:03:28 +0000 (19:03 +0200)]
axzshctl: Simplify (and fix) messages without ax-unix
Alexander Barton [Sat, 27 Aug 2016 14:22:07 +0000 (16:22 +0200)]
keychain: Don't test for agents, it's done by keychain itself