]> arthur.barton.de Git - ax-zsh.git/log
ax-zsh.git
7 years agokeychain: Don't test for agents, it's done by keychain itself
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

7 years agokeychanin: Enhance logic and introduce axzsh_keychain_update function
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.

7 years agoDon't enable fancy features when the terminal is "dumb"
Alexander Barton [Sat, 27 Aug 2016 13:10:58 +0000 (15:10 +0200)]
Don't enable fancy features when the terminal is "dumb"

7 years ago10_terminal: Fix up TERM for VTE-based terminals
Alexander Barton [Fri, 26 Aug 2016 09:45:59 +0000 (11:45 +0200)]
10_terminal: Fix up TERM for VTE-based terminals

7 years agoRead /var/lib/$HOST/profile when no /var/lib/$HOST/zprofile exists
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

7 years agoImplement new axzsh_is_dumb_terminal() function, and use it
Alexander Barton [Wed, 17 Aug 2016 21:00:31 +0000 (23:00 +0200)]
Implement new axzsh_is_dumb_terminal() function, and use it

7 years ago10_terminal: Explicitly map "dev-vt52" to "vt52"
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.

7 years agoAdd ~/.local/bin and /usr/local/games to search path
Alexander Barton [Sat, 9 Jul 2016 15:02:10 +0000 (17:02 +0200)]
Add ~/.local/bin and /usr/local/games to search path

7 years agoBetter sort search path, and prefere "sbin" over "bin"
Alexander Barton [Sat, 9 Jul 2016 15:01:33 +0000 (17:01 +0200)]
Better sort search path, and prefere "sbin" over "bin"

7 years agoiterm2: Update shell integration to version 2
Alexander Barton [Wed, 25 May 2016 09:33:48 +0000 (11:33 +0200)]
iterm2: Update shell integration to version 2

7 years agoFix return codes of "zsh-navigation-tools" & "zsh-syntax-highlighting"
Alexander Barton [Wed, 11 May 2016 09:51:46 +0000 (11:51 +0200)]
Fix return codes of "zsh-navigation-tools" & "zsh-syntax-highlighting"

7 years agoAdd new "check-plugins" command to axzshctl(1)
Alexander Barton [Wed, 11 May 2016 09:45:12 +0000 (11:45 +0200)]
Add new "check-plugins" command to axzshctl(1)

7 years agopowerline-shell: Fail silently
Alexander Barton [Wed, 11 May 2016 08:55:30 +0000 (10:55 +0200)]
powerline-shell: Fail silently

7 years agoAdd "zsh-navigation-tools" plugin
Alexander Barton [Wed, 11 May 2016 08:18:09 +0000 (10:18 +0200)]
Add "zsh-navigation-tools" plugin

7 years agohomebrew: Make code a little bit better ;-)
Alexander Barton [Wed, 11 May 2016 08:16:41 +0000 (10:16 +0200)]
homebrew: Make code a little bit better ;-)

7 years agoUse UTF8 characters in VCS prompts on UTF8 terminals only
Alexander Barton [Sat, 7 May 2016 18:51:31 +0000 (20:51 +0200)]
Use UTF8 characters in VCS prompts on UTF8 terminals only

7 years ago"ax" theme: Don't use UTF8 characters on non-UTF8 terminals
Alexander Barton [Sat, 7 May 2016 18:15:28 +0000 (20:15 +0200)]
"ax" theme: Don't use UTF8 characters on non-UTF8 terminals

7 years agoClean up external repositories on "axzshctl reset-plugins"
Alexander Barton [Fri, 6 May 2016 16:46:45 +0000 (18:46 +0200)]
Clean up external repositories on "axzshctl reset-plugins"

7 years agoFix detection of plugins stored on GitHub
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.

7 years agoReally skip unknown plugins altogether
Alexander Barton [Fri, 6 May 2016 16:10:35 +0000 (18:10 +0200)]
Really skip unknown plugins altogether

7 years agoAdd some more comments ...
Alexander Barton [Fri, 6 May 2016 16:10:06 +0000 (18:10 +0200)]
Add some more comments ...

7 years agoStrip ".zsh" extension from foreign plugin names
Alexander Barton [Fri, 6 May 2016 11:09:47 +0000 (13:09 +0200)]
Strip ".zsh" extension from foreign plugin names

7 years agoImplement plugin loading from GitHub
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.

7 years agoFix handling of foreign plugins
Alexander Barton [Fri, 6 May 2016 10:39:04 +0000 (12:39 +0200)]
Fix handling of foreign plugins

And enhance error handling & reporting.

7 years ago2016! :-)
Alexander Barton [Fri, 6 May 2016 10:37:32 +0000 (12:37 +0200)]
2016! :-)

8 years agohomebrew: Clean up ZSH completion handling
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.

8 years ago10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES"
Alexander Barton [Sun, 21 Feb 2016 22:22:56 +0000 (23:22 +0100)]
10_terminal: Implement "axzsh_resize_terminal COLUMNS LINES"

8 years ago10_terminal: Reorder functions
Alexander Barton [Sun, 21 Feb 2016 22:21:49 +0000 (23:21 +0100)]
10_terminal: Reorder functions

8 years ago10_terminal: Add axzsh_is_utf_terminal and isutfenv 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.

8 years agovirtualenvwrapper: Try to set PROJECT_HOME harder
Alexander Barton [Fri, 19 Feb 2016 09:59:44 +0000 (10:59 +0100)]
virtualenvwrapper: Try to set PROJECT_HOME harder

8 years agoCorrectly unset local variables
Alexander Barton [Fri, 19 Feb 2016 09:58:40 +0000 (10:58 +0100)]
Correctly unset local variables

8 years agohomebrew: Link ZSH completion into plugin function directory
Alexander Barton [Fri, 19 Feb 2016 09:57:15 +0000 (10:57 +0100)]
homebrew: Link ZSH completion into plugin function directory

8 years agogit: Add "git fix" alias
Alexander Barton [Wed, 10 Feb 2016 14:52:12 +0000 (15:52 +0100)]
git: Add "git fix" alias

8 years ago20_home: Create local home directory with restricted permissions
Alexander Barton [Sun, 6 Dec 2015 18:20:17 +0000 (19:20 +0100)]
20_home: Create local home directory with restricted permissions

8 years agozsh-syntax-highlighting: Find scripts on Debian, too
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.

8 years agoFix, update, and enhance the README.md file
Alexander Barton [Tue, 1 Dec 2015 14:41:46 +0000 (15:41 +0100)]
Fix, update, and enhance the README.md file

8 years agognupg: Read in ~/.gpg-agent-info file
Alexander Barton [Tue, 1 Dec 2015 14:02:05 +0000 (15:02 +0100)]
gnupg: Read in ~/.gpg-agent-info file

8 years agoinstall.sh: Install themes, too!
Alexander Barton [Sun, 15 Nov 2015 15:52:06 +0000 (16:52 +0100)]
install.sh: Install themes, too!

8 years agobyebye: Add extra empty line
Alexander Barton [Sat, 14 Nov 2015 23:47:06 +0000 (00:47 +0100)]
byebye: Add extra empty line

8 years agoOnly test for ~/.axzsh.debug once and export AXZSH_DEBUG
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.

8 years agoDon't call external tools, use variable modifiers
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.

8 years agoOnly window/icon title on "modern" terminals only
Alexander Barton [Sat, 7 Nov 2015 21:15:57 +0000 (22:15 +0100)]
Only window/icon title on "modern" terminals only

8 years ago99_cleanup: Suppress error messages of "unfunction"
Alexander Barton [Tue, 3 Nov 2015 14:33:55 +0000 (15:33 +0100)]
99_cleanup: Suppress error messages of "unfunction"

8 years ago50_prompt: Show "logname" for root user by default
Alexander Barton [Mon, 2 Nov 2015 14:35:22 +0000 (15:35 +0100)]
50_prompt: Show "logname" for root user by default

8 years agoFix "theme" setup, rename "prompt" plugin to "theme"
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.

8 years ago"ax" theme: Fix CVS prompt, don't insert a space
Alexander Barton [Mon, 2 Nov 2015 13:36:00 +0000 (14:36 +0100)]
"ax" theme: Fix CVS prompt, don't insert a space

8 years ago"ax" theme: Set and export PS4 prompt
Alexander Barton [Mon, 2 Nov 2015 13:35:29 +0000 (14:35 +0100)]
"ax" theme: Set and export PS4 prompt

8 years ago50_prompt: Don't export PS{1...4} and RPS{1|2} any more
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").

8 years agoAdd completion for "axzshctl" command
Alexander Barton [Tue, 13 Oct 2015 15:16:46 +0000 (17:16 +0200)]
Add completion for "axzshctl" command

8 years agoAdd plugin "function path" to search path, when existent
Alexander Barton [Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)]
Add plugin "function path" to search path, when existent

8 years agoAdd "ohmyzsh" (robbyrussell) theme
Alexander Barton [Mon, 5 Oct 2015 19:13:48 +0000 (21:13 +0200)]
Add "ohmyzsh" (robbyrussell) theme

8 years agoAdd "debian" theme
Alexander Barton [Mon, 5 Oct 2015 19:13:25 +0000 (21:13 +0200)]
Add "debian" theme

8 years agoAllow themes to define VCS info spacing
Alexander Barton [Mon, 5 Oct 2015 19:08:13 +0000 (21:08 +0200)]
Allow themes to define VCS info spacing

8 years agoAdd "powerline-shell" plugin
Alexander Barton [Sun, 4 Oct 2015 01:29:36 +0000 (03:29 +0200)]
Add "powerline-shell" plugin

8 years ago99_cleanup: Don't clean up when zprofile hasn't been read
Alexander Barton [Fri, 2 Oct 2015 08:53:15 +0000 (10:53 +0200)]
99_cleanup: Don't clean up when zprofile hasn't been read

8 years ago01_zprofile, 99_zlogin: Use full plugin path
Alexander Barton [Fri, 2 Oct 2015 08:52:51 +0000 (10:52 +0200)]
01_zprofile, 99_zlogin: Use full plugin path

8 years agoiterm2: Don't test for $TERM_PROGRAM, dosn't work on remote hosts
Alexander Barton [Tue, 29 Sep 2015 12:27:06 +0000 (14:27 +0200)]
iterm2: Don't test for $TERM_PROGRAM, dosn't work on remote hosts

8 years agoAdd "iterm2" plugin: iTerm2.app shell integration
Alexander Barton [Tue, 29 Sep 2015 11:35:00 +0000 (13:35 +0200)]
Add "iterm2" plugin: iTerm2.app shell integration

8 years agoax.axzshtheme: Refactor usage of default variables
Alexander Barton [Sun, 27 Sep 2015 19:28:37 +0000 (21:28 +0200)]
ax.axzshtheme: Refactor usage of default variables

8 years agoStreamline default values of AX-ZSH theming variables
Alexander Barton [Sun, 27 Sep 2015 19:06:12 +0000 (21:06 +0200)]
Streamline default values of AX-ZSH theming variables

8 years ago50_prompt: Introduce ax_prompt() function
Alexander Barton [Sun, 27 Sep 2015 19:05:36 +0000 (21:05 +0200)]
50_prompt: Introduce ax_prompt() function

8 years ago50_prompt: ZSH_THEME_{LOGNAME|HOSTNAME|VCS}_PROMPT_{PREFIX|SUFFIX}_SPACING
Alexander Barton [Sun, 27 Sep 2015 18:42:46 +0000 (20:42 +0200)]
50_prompt: ZSH_THEME_{LOGNAME|HOSTNAME|VCS}_PROMPT_{PREFIX|SUFFIX}_SPACING

8 years agoInitial theming support
Alexander Barton [Sun, 27 Sep 2015 18:27:53 +0000 (20:27 +0200)]
Initial theming support

8 years agoax_logname_prompt_root(): Don't output user name
Alexander Barton [Sun, 27 Sep 2015 18:25:02 +0000 (20:25 +0200)]
ax_logname_prompt_root(): Don't output user name

This fixes b51f608157.

8 years agoNew core module "99_cleanup"
Alexander Barton [Sun, 27 Sep 2015 18:19:51 +0000 (20:19 +0200)]
New core module "99_cleanup"

Don't pollute the namespace, remove variables/functions/...

8 years ago50_prompt: Export all prompt variables
Alexander Barton [Sun, 27 Sep 2015 18:19:12 +0000 (20:19 +0200)]
50_prompt: Export all prompt variables

8 years ago50_prompt: Remove unused variables
Alexander Barton [Sun, 27 Sep 2015 18:13:21 +0000 (20:13 +0200)]
50_prompt: Remove unused variables

8 years agoRun ax_{logname|hostname}_prompt_yn() only once when setting PS1
Alexander Barton [Sun, 27 Sep 2015 17:39:01 +0000 (19:39 +0200)]
Run ax_{logname|hostname}_prompt_yn() only once when setting PS1

Don't run these functions each time the prompt is displayed.

8 years agoRefactor prompt functions
Alexander Barton [Sun, 27 Sep 2015 17:34:18 +0000 (19:34 +0200)]
Refactor prompt functions

- Initialize ax_*_prompt_functions arrays.
- ax_logname_prompt -> ax_logname_prompt_yn, return boolean.
- ax_hostname_prompt -> ax_hostname_prompt_yn, return boolean.
- ssh_logname_prompt -> _ax_ssh_logname_prompt, return boolean.

8 years agoax.zsh: Undefined "axzsh_load_plugin" function, it's not public
Alexander Barton [Sun, 27 Sep 2015 15:18:45 +0000 (17:18 +0200)]
ax.zsh: Undefined "axzsh_load_plugin" function, it's not public

Plugins can't be loaded with this function on runtime (because plugins
can consist of different stages: zlogin/zprofile/zshrc/...), so don't
pollute the namespace.

8 years agoaxzshctl: Fix "usage" message
Alexander Barton [Sun, 27 Sep 2015 15:16:32 +0000 (17:16 +0200)]
axzshctl: Fix "usage" message

8 years agoREADME.md: Update introduction, mention "ZSH"
Alexander Barton [Sat, 26 Sep 2015 14:50:29 +0000 (16:50 +0200)]
README.md: Update introduction, mention "ZSH"

8 years agoAdd README.md files for plugins
Alexander Barton [Sat, 26 Sep 2015 14:48:23 +0000 (16:48 +0200)]
Add README.md files for plugins

8 years agoAdd "fzf" plugin: "zf(1), a command-line fuzzy finder"
Alexander Barton [Sat, 26 Sep 2015 13:47:44 +0000 (15:47 +0200)]
Add "fzf" plugin: "zf(1), a command-line fuzzy finder"

8 years agothefuck: Use "thefuck --alias" for initialization
Alexander Barton [Sun, 20 Sep 2015 18:34:10 +0000 (20:34 +0200)]
thefuck: Use "thefuck --alias" for initialization

8 years agoaxzshctl: Implement "upgrade" command
Alexander Barton [Sat, 12 Sep 2015 19:00:19 +0000 (21:00 +0200)]
axzshctl: Implement "upgrade" command

8 years agoIntroduce $AXZSH/custom_plugins directory
Alexander Barton [Sat, 12 Sep 2015 18:42:11 +0000 (20:42 +0200)]
Introduce $AXZSH/custom_plugins directory

You can use this directory to store custom/local plugins.

8 years agoREADME.md: Add "customization" section
Alexander Barton [Sat, 12 Sep 2015 18:36:27 +0000 (20:36 +0200)]
README.md: Add "customization" section

8 years agoREADME.md: Update installation instructions
Alexander Barton [Sat, 12 Sep 2015 18:35:11 +0000 (20:35 +0200)]
README.md: Update installation instructions

8 years agoinstall.sh: Introduce "abort" function and use it
Alexander Barton [Sat, 12 Sep 2015 18:08:53 +0000 (20:08 +0200)]
install.sh: Introduce "abort" function and use it

8 years agoinstall.sh: Use "which" instead of "type"
Alexander Barton [Sat, 12 Sep 2015 18:07:15 +0000 (20:07 +0200)]
install.sh: Use "which" instead of "type"

"type" isn't POSIX compliant.

8 years agoinstall.sh: Really copy files or setup existing ~/.axzsh directory
Alexander Barton [Sat, 12 Sep 2015 18:06:46 +0000 (20:06 +0200)]
install.sh: Really copy files or setup existing ~/.axzsh directory

Don't symlink ~/.axzsh to some other location.

8 years agoAdd "hub" plugin for hub(1)
Alexander Barton [Sat, 12 Sep 2015 16:46:32 +0000 (18:46 +0200)]
Add "hub" plugin for hub(1)

https://hub.github.com

8 years agols: Fix detection of color support
Alexander Barton [Fri, 28 Aug 2015 15:14:34 +0000 (17:14 +0200)]
ls: Fix detection of color support

8 years agoaxzshctl: Implement "enable-default-plugins"
Alexander Barton [Fri, 28 Aug 2015 14:59:16 +0000 (16:59 +0200)]
axzshctl: Implement "enable-default-plugins"

8 years agokeychain: Use forwarded agents
Alexander Barton [Tue, 25 Aug 2015 07:00:20 +0000 (09:00 +0200)]
keychain: Use forwarded agents

8 years agostd_env: Set up ZSH "REPORTTIME"
Alexander Barton [Sat, 22 Aug 2015 12:50:58 +0000 (14:50 +0200)]
std_env: Set up ZSH "REPORTTIME"

8 years agostd_options: Watch for logins of other users
Alexander Barton [Sat, 22 Aug 2015 12:50:38 +0000 (14:50 +0200)]
std_options: Watch for logins of other users

8 years agostd_options: Enable "longlistjobs"
Alexander Barton [Sat, 22 Aug 2015 12:50:18 +0000 (14:50 +0200)]
std_options: Enable "longlistjobs"

8 years agols: Set up "dircolors" when available
Alexander Barton [Sat, 22 Aug 2015 12:49:02 +0000 (14:49 +0200)]
ls: Set up "dircolors" when available

And use "dircolors" for completion menus, too.

8 years agoless: Set up color usage
Alexander Barton [Sat, 22 Aug 2015 12:48:14 +0000 (14:48 +0200)]
less: Set up color usage

8 years agohistory: Ignore duplicates and commands that begin with a space
Alexander Barton [Sat, 22 Aug 2015 12:47:58 +0000 (14:47 +0200)]
history: Ignore duplicates and commands that begin with a space

8 years ago50_completion: Insert manual page sections
Alexander Barton [Sat, 22 Aug 2015 12:47:22 +0000 (14:47 +0200)]
50_completion: Insert manual page sections

8 years agostd_env: Don't overwrite variables
Alexander Barton [Sat, 22 Aug 2015 11:40:00 +0000 (13:40 +0200)]
std_env: Don't overwrite variables

8 years agossh_secure: Don't alias "ssh" to "ssh -o 'StrictHostKeyChecking yes'
Alexander Barton [Thu, 20 Aug 2015 13:18:19 +0000 (15:18 +0200)]
ssh_secure: Don't alias "ssh" to "ssh -o 'StrictHostKeyChecking yes'

Creating this alias prevents the user from overwriting this for certain
hosts in his ~/.ssh/config file.

You should add something like the folloging to you ~/.ssh/config file
to make ssh more secure by default:

    # Trusted test network with changing hosts
    Host *.example.net
        StrictHostKeyChecking no
        UserKnownHostsFile /dev/null

    # Be more secure by default!
    Host *
        CheckHostIP yes
        StrictHostKeyChecking yes

8 years ago10_terminal: Add "root" to list of remote commands
Alexander Barton [Wed, 19 Aug 2015 08:38:24 +0000 (10:38 +0200)]
10_terminal: Add "root" to list of remote commands

Ugly hack, but I use this alias for ssh at work ...

8 years ago10_terminal: Add command to window title in iTerm.app
Alexander Barton [Wed, 19 Aug 2015 08:37:03 +0000 (10:37 +0200)]
10_terminal: Add command to window title in iTerm.app

8 years ago10_terminal: Don't set "user@host" window title for remote commands
Alexander Barton [Wed, 19 Aug 2015 08:36:35 +0000 (10:36 +0200)]
10_terminal: Don't set "user@host" window title for remote commands

8 years agodocker-machine: Suppress error output
Alexander Barton [Sun, 16 Aug 2015 13:49:56 +0000 (15:49 +0200)]
docker-machine: Suppress error output

8 years agoAdd "docker-machine" plugin
Alexander Barton [Sun, 16 Aug 2015 11:33:21 +0000 (13:33 +0200)]
Add "docker-machine" plugin