]>
arthur.barton.de Git - ax-zsh.git/log
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
Alexander Barton [Sat, 27 Aug 2016 13:46:59 +0000 (15:46 +0200)]
keychanin: Enhance logic and introduce axzsh_keychain_update function
Now keychain(1) is called in the "profile" stage for login shells
already, to make sure that it runs before any other local scripts
test, use, or update the SSH and GnuPG agents.
And in addition this patch introduces the new axzsh_keychain_update
function, which can be used to update the SSH and GnuPG agent
information at any time.
Alexander Barton [Sat, 27 Aug 2016 13:10:58 +0000 (15:10 +0200)]
Don't enable fancy features when the terminal is "dumb"
Alexander Barton [Fri, 26 Aug 2016 09:45:59 +0000 (11:45 +0200)]
10_terminal: Fix up TERM for VTE-based terminals
Alexander Barton [Wed, 17 Aug 2016 21:01:53 +0000 (23:01 +0200)]
Read /var/lib/$HOST/profile when no /var/lib/$HOST/zprofile exists
Alexander Barton [Wed, 17 Aug 2016 21:00:31 +0000 (23:00 +0200)]
Implement new axzsh_is_dumb_terminal() function, and use it
Alexander Barton [Wed, 17 Aug 2016 20:58:02 +0000 (22:58 +0200)]
10_terminal: Explicitly map "dev-vt52" to "vt52"
The "dec-vt52" type is used by TELNET.TTP on Atari MagiC, but isn't
supported by modern Linux (any more). So map it to the generic type.
Alexander Barton [Sat, 9 Jul 2016 15:02:10 +0000 (17:02 +0200)]
Add ~/.local/bin and /usr/local/games to search path
Alexander Barton [Sat, 9 Jul 2016 15:01:33 +0000 (17:01 +0200)]
Better sort search path, and prefere "sbin" over "bin"
Alexander Barton [Wed, 25 May 2016 09:33:48 +0000 (11:33 +0200)]
iterm2: Update shell integration to version 2
Alexander Barton [Wed, 11 May 2016 09:51:46 +0000 (11:51 +0200)]
Fix return codes of "zsh-navigation-tools" & "zsh-syntax-highlighting"
Alexander Barton [Wed, 11 May 2016 09:45:12 +0000 (11:45 +0200)]
Add new "check-plugins" command to axzshctl(1)
Alexander Barton [Wed, 11 May 2016 08:55:30 +0000 (10:55 +0200)]
powerline-shell: Fail silently
Alexander Barton [Wed, 11 May 2016 08:18:09 +0000 (10:18 +0200)]
Add "zsh-navigation-tools" plugin
Alexander Barton [Wed, 11 May 2016 08:16:41 +0000 (10:16 +0200)]
homebrew: Make code a little bit better ;-)
Alexander Barton [Sat, 7 May 2016 18:51:31 +0000 (20:51 +0200)]
Use UTF8 characters in VCS prompts on UTF8 terminals only
Alexander Barton [Sat, 7 May 2016 18:15:28 +0000 (20:15 +0200)]
"ax" theme: Don't use UTF8 characters on non-UTF8 terminals
Alexander Barton [Fri, 6 May 2016 16:46:45 +0000 (18:46 +0200)]
Clean up external repositories on "axzshctl reset-plugins"
Alexander Barton [Fri, 6 May 2016 16:45:26 +0000 (18:45 +0200)]
Fix detection of plugins stored on GitHub
This fixes enabling of local plugins using a full path name.
Alexander Barton [Fri, 6 May 2016 16:10:35 +0000 (18:10 +0200)]
Really skip unknown plugins altogether
Alexander Barton [Fri, 6 May 2016 16:10:06 +0000 (18:10 +0200)]
Add some more comments ...
Alexander Barton [Fri, 6 May 2016 11:09:47 +0000 (13:09 +0200)]
Strip ".zsh" extension from foreign plugin names
Alexander Barton [Fri, 6 May 2016 10:42:00 +0000 (12:42 +0200)]
Implement plugin loading from GitHub
Simply use "<user-name>/<project-name>" als plugin name when calling
"axzshctl enable-plugin" and "axzshctl disable-plugin". Example:
axzshctl enable-plugin zsh-users/zsh-autosuggestions
The remote repository is cloned into the local "$AXZSH/repos" directory
and deleted by "axzshctl disable-plugin" when it is no longer needed.
"axzshctl upgrade" upgrades all remote repositories as well.
Alexander Barton [Fri, 6 May 2016 10:39:04 +0000 (12:39 +0200)]
Fix handling of foreign plugins
And enhance error handling & reporting.
Alexander Barton [Fri, 6 May 2016 10:37:32 +0000 (12:37 +0200)]
2016! :-)
Alexander Barton [Fri, 15 Apr 2016 19:23:53 +0000 (21:23 +0200)]
homebrew: Clean up ZSH completion handling
Homebrew recently restructured their repositories and removed the
"brew_zsh_completion.zsh" file; so this "trick" dosn't work any more.
But ZSH completion uses the bash "brew" completion anyways, so
everything should be fine.
This reverts
56a1f26373 .
Alexander Barton [Sun, 21 Feb 2016 22:22:56 +0000 (23:22 +0100)]
10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES"
Alexander Barton [Sun, 21 Feb 2016 22:21:49 +0000 (23:21 +0100)]
10_terminal: Reorder functions
Alexander Barton [Fri, 19 Feb 2016 10:01:04 +0000 (11:01 +0100)]
10_terminal: Add axzsh_is_utf_terminal and isutfenv functions
The latter is an alias of the first, which is used by GRML ZSH.