]>
arthur.barton.de Git - ax-zsh.git/log
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.
Alexander Barton [Fri, 19 Feb 2016 09:59:44 +0000 (10:59 +0100)]
virtualenvwrapper: Try to set PROJECT_HOME harder
Alexander Barton [Fri, 19 Feb 2016 09:58:40 +0000 (10:58 +0100)]
Correctly unset local variables
Alexander Barton [Fri, 19 Feb 2016 09:57:15 +0000 (10:57 +0100)]
homebrew: Link ZSH completion into plugin function directory
Alexander Barton [Wed, 10 Feb 2016 14:52:12 +0000 (15:52 +0100)]
git: Add "git fix" alias
Alexander Barton [Sun, 6 Dec 2015 18:20:17 +0000 (19:20 +0100)]
20_home: Create local home directory with restricted permissions
Alexander Barton [Sun, 6 Dec 2015 18:19:04 +0000 (19:19 +0100)]
zsh-syntax-highlighting: Find scripts on Debian, too
zsh-syntax-highlighting is available in Debian "testing" now.
Alexander Barton [Tue, 1 Dec 2015 14:41:46 +0000 (15:41 +0100)]
Fix, update, and enhance the README.md file
Alexander Barton [Tue, 1 Dec 2015 14:02:05 +0000 (15:02 +0100)]
gnupg: Read in ~/.gpg-agent-info file
Alexander Barton [Sun, 15 Nov 2015 15:52:06 +0000 (16:52 +0100)]
install.sh: Install themes, too!
Alexander Barton [Sat, 14 Nov 2015 23:47:06 +0000 (00:47 +0100)]
byebye: Add extra empty line
Alexander Barton [Sat, 14 Nov 2015 23:44:11 +0000 (00:44 +0100)]
Only test for ~/.axzsh.debug once and export AXZSH_DEBUG
This makes subsequent tests much faster and allows other tools to
test for "debug mode" much simpler.
Alexander Barton [Sat, 14 Nov 2015 23:41:33 +0000 (00:41 +0100)]
Don't call external tools, use variable modifiers
Not calling external tools like basename(1) and readlink(1) but ZSH
variable modifiers greatly enhances startup performance, especially on
slow machines.
Alexander Barton [Sat, 7 Nov 2015 21:15:57 +0000 (22:15 +0100)]
Only window/icon title on "modern" terminals only
Alexander Barton [Tue, 3 Nov 2015 14:33:55 +0000 (15:33 +0100)]
99_cleanup: Suppress error messages of "unfunction"
Alexander Barton [Mon, 2 Nov 2015 14:35:22 +0000 (15:35 +0100)]
50_prompt: Show "logname" for root user by default
Alexander Barton [Mon, 2 Nov 2015 14:32:10 +0000 (15:32 +0100)]
Fix "theme" setup, rename "prompt" plugin to "theme"
This fixes commit
07055eae "50_prompt: Don't export PS{1...4} and
RPS{1|2} any more", which moved prompt initialization from "zlogin"
stage to "zshrc" stage.
Alexander Barton [Mon, 2 Nov 2015 13:36:00 +0000 (14:36 +0100)]
"ax" theme: Fix CVS prompt, don't insert a space
Alexander Barton [Mon, 2 Nov 2015 13:35:29 +0000 (14:35 +0100)]
"ax" theme: Set and export PS4 prompt
Alexander Barton [Mon, 2 Nov 2015 13:33:57 +0000 (14:33 +0100)]
50_prompt: Don't export PS{1...4} and RPS{1|2} any more
Exporting the prompt environment variables fails with non-ZSH sub-shells,
and with AX-ZSH themes that relay on environment variables that aren't
exported (and plain ZSH doesn't export by default, so nobody can relay on
this anyway).
Now themes are initialized in the "zshrc" step (insetad of "zlogin").
Alexander Barton [Tue, 13 Oct 2015 15:16:46 +0000 (17:16 +0200)]
Add completion for "axzshctl" command
Alexander Barton [Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)]
Add plugin "function path" to search path, when existent
Alexander Barton [Mon, 5 Oct 2015 19:13:48 +0000 (21:13 +0200)]
Add "ohmyzsh" (robbyrussell) theme
Alexander Barton [Mon, 5 Oct 2015 19:13:25 +0000 (21:13 +0200)]
Add "debian" theme
Alexander Barton [Mon, 5 Oct 2015 19:08:13 +0000 (21:08 +0200)]
Allow themes to define VCS info spacing
Alexander Barton [Sun, 4 Oct 2015 01:29:36 +0000 (03:29 +0200)]
Add "powerline-shell" plugin