]>
arthur.barton.de Git - ax-zsh.git/log
Alexander Barton [Sun, 21 Apr 2024 20:13:09 +0000 (22:13 +0200)]
P10k: Read config after enabling instant prompt
This is how it is done in the official examples and enables instant
prompt even earlier, which is great!
Alexander Barton [Sat, 20 Apr 2024 14:00:21 +0000 (16:00 +0200)]
iterm2: Don't enable shell integrations inside of VIM
Alexander Barton [Sat, 20 Apr 2024 13:54:11 +0000 (15:54 +0200)]
homebrew: Export HOMEBREW_AUTO_UPDATE_SECS
Alexander Barton [Sat, 20 Apr 2024 12:54:42 +0000 (14:54 +0200)]
iterm2: Update to iTerm2 shell integration v14
Alexander Barton [Sat, 20 Apr 2024 12:52:16 +0000 (14:52 +0200)]
iterm2: Respect ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX variable in tmux
Not only respect ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX in screen
but in tmux, too, what the name implies and what upstream intended it
to be!
Alexander Barton [Sat, 20 Apr 2024 12:51:25 +0000 (14:51 +0200)]
iterm2: Don't setup command aliases, we always update the search path
This way all iTerm2 commands are available in child processes, too.
Alexander Barton [Tue, 2 Apr 2024 18:59:22 +0000 (20:59 +0200)]
homebrew: Set HOMEBREW_AUTO_UPDATE_SECS to 10 minutes
Alexander Barton [Tue, 20 Feb 2024 20:34:59 +0000 (21:34 +0100)]
browser_select: Fix incomplete documentation
Alexander Barton [Fri, 16 Feb 2024 09:41:14 +0000 (10:41 +0100)]
gnupg: Don't call tty(1), use the $TTY variable
This fixes setting GPG_TTY when stdin is not a real terminal, for
example when using Powerlevel10k "instant prompt".
See <https://unix.stackexchange.com/questions/608842/zshrc-export-gpg-tty-tty-says-not-a-tty>.
Alexander Barton [Sat, 10 Feb 2024 16:47:41 +0000 (17:47 +0100)]
Only unfunction axzsh_plugin_init() when it still exists
The axzsh_handle_stage() can be called recursively, therefore
axzsh_plugin_init() was probably already unfunction'ed.
Alexander Barton [Sat, 10 Feb 2024 16:39:38 +0000 (17:39 +0100)]
Unset "p10k_instant_prompt" and add some more debug messages
Alexander Barton [Sat, 10 Feb 2024 16:35:48 +0000 (17:35 +0100)]
Don't initialize Powerlevel10k "instant prompt" too early
A non-login shell which is not a (direct) sub-shells of an AX-ZSH
enabled shell will "catch up" on the "ax-io" and "zprofile" stages, so
don't initialize the Powerlevel10k "instant prompt" too early, before
catching up on the "ax-io" stage!
This fixes commit
07d487a .
Alexander Barton [Sat, 10 Feb 2024 16:33:33 +0000 (17:33 +0100)]
Fix catching up the "ax-io", "zprofile" and "zlogin" stages
Especially fix running the "zlogin" stage and exporting the
AXZSH_ZPROFILE_READ variable.
And add some more comments clarifying what's going on and why.
Alexander Barton [Sat, 10 Feb 2024 10:11:15 +0000 (11:11 +0100)]
Initialize Powerlevel10k in non-login shells, too!
Alexander Barton [Fri, 9 Feb 2024 15:31:23 +0000 (16:31 +0100)]
Add a .mailmap file
Alexander Barton [Sat, 20 Jan 2024 22:38:47 +0000 (23:38 +0100)]
std_functions: Further tweak untake()
Alexander Barton [Wed, 17 Jan 2024 10:38:13 +0000 (11:38 +0100)]
axzshctl: Implement new "plugin-help" subcommand
Alexander Barton [Wed, 17 Jan 2024 09:48:52 +0000 (10:48 +0100)]
std_functions: Enhance take(), introduce untake()
take() now creates an new temporary directory when called without
parameters (and changes the working directory into it).
The new untake() functions changes the current working directory to the
home directory and recursively deletes the old working directory when
the path matches a pattern which is used for temporary directorues
created by take().
Alexander Barton [Fri, 15 Dec 2023 19:54:06 +0000 (20:54 +0100)]
editor_select: Add more editors to the auto-detect list
Alexander Barton [Fri, 15 Dec 2023 19:53:37 +0000 (20:53 +0100)]
editor_select: Check the user preferences first!
Alexander Barton [Fri, 15 Dec 2023 19:49:14 +0000 (20:49 +0100)]
editor_select: Validate an already set $EDITOR
Alexander Barton [Sat, 9 Dec 2023 12:30:32 +0000 (13:30 +0100)]
2023 =:)
Alexander Barton [Sat, 9 Dec 2023 12:30:18 +0000 (13:30 +0100)]
axzshctl: Add "help" and "version" to help text and completion config
Alexander Barton [Sat, 9 Dec 2023 12:29:30 +0000 (13:29 +0100)]
axzshctl: Enhance "version" information, show prefix & theme
Alexander Barton [Fri, 8 Dec 2023 16:43:06 +0000 (17:43 +0100)]
30_env: Make sure the default environment is always set
Now the default environment is set up in non-login shells by including
the "30_env.ax-io" code, too, if some of the standard variables are not
set or invalid.
Alexander Barton [Fri, 8 Dec 2023 16:38:25 +0000 (17:38 +0100)]
neofetch: Get rid of the axzsh_neofetch() function
Alexander Barton [Fri, 8 Dec 2023 13:13:06 +0000 (14:13 +0100)]
neofetch: Don't configure fastfetch/neofetch, use defaults
This way it is easier for the user to just provide a configuration file
with the settings he likes.
Alexander Barton [Sun, 26 Nov 2023 12:20:50 +0000 (13:20 +0100)]
std_aliases: Add some "global" and "suffix" aliases
Some of the global aliases are compatible to the ones defined by the
OhMyZsh plugin "common-aliases".
Alexander Barton [Wed, 22 Nov 2023 13:47:12 +0000 (14:47 +0100)]
Add "gloo" alias showing logs since "ORIG_HEAD"
Alexander Barton [Tue, 20 Jun 2023 15:26:47 +0000 (17:26 +0200)]
30_path: No longer look for Homebrew
Use the "homebrew" plugin instead, which will setup the environment
itself -- and setting the PATH here effectively prevents the plugin from
doing it properly (because "brew shellenv" will become a no-op)!
Alexander Barton [Tue, 20 Jun 2023 15:24:22 +0000 (17:24 +0200)]
homebrew: No longer provide a "brew" wrapper function
Don't provide a "brew" wrapper shell function (which was not available
for other commands), look for the "real" brew command instead and use it
with the "shellenv" subcommand to properly setup the environment.
This reverts
c27ca78 .
Alexander Barton [Wed, 24 May 2023 10:13:46 +0000 (12:13 +0200)]
homebrew: SHow command info for no args, "doctor" and "dr" sub-commands
Alexander Barton [Wed, 24 May 2023 10:12:53 +0000 (12:12 +0200)]
homebrew: Always run "brew shellenv" when changing user identity
And clean up error exit codes.
Alexander Barton [Wed, 24 May 2023 10:11:18 +0000 (12:11 +0200)]
homebrew: Enhance code, no functional changes
Alexander Barton [Wed, 24 May 2023 10:06:28 +0000 (12:06 +0200)]
40_completion: Call "compinit -u" when "ZSH_DISABLE_COMPFIX" is set
This disables the check for "insecure directories" of the "compinit"
function.
Alexander Barton [Fri, 14 Apr 2023 11:35:54 +0000 (13:35 +0200)]
neofetch: Add support for fastfetch(1)
Alexander Barton [Sun, 25 Dec 2022 13:35:05 +0000 (14:35 +0100)]
axttyinfo: Tweak the tool a bit :-)
- Show the terminal program and its version
- Show way more environment variables and enhance formatting
- Implement "one line" (-1) mode
Alexander Barton [Sun, 25 Dec 2022 13:33:53 +0000 (14:33 +0100)]
std_env: Don't set REPORTTIME in Warp terminal
The Warp terminal does this on its own.
Alexander Barton [Sun, 11 Dec 2022 14:36:25 +0000 (15:36 +0100)]
Look for configuration files in $ZDOTDIR
This allows you to set/override the ZDOTDIR environment variable in your
~/.zshenv file to have different "sets" of AX-ZSH configurations in
different ZDOTDIR folders. For example, for different terminal emulator
applications, system architectures or hosts.
If ZDOTDIR is not set, $HOME is used (so no functional changes when the
ZDOTDIR environment variable is not set).
Alexander Barton [Sun, 27 Nov 2022 15:37:04 +0000 (16:37 +0100)]
"Expand" all alias definitions
This makes it more obvious, what the alias is about, and makes the the
"olets/zsh-abbr" extension more useful, for example.
Alexander Barton [Sun, 27 Nov 2022 12:18:57 +0000 (13:18 +0100)]
git: Add some more OhMyZsh-compatible aliases
Alexander Barton [Mon, 17 Oct 2022 14:37:53 +0000 (16:37 +0200)]
browser_select: Do not use open(1) on Linux to prevent endless recursion
Alexander Barton [Wed, 21 Sep 2022 21:19:09 +0000 (23:19 +0200)]
homebrew: brew() function: Test permissions on the repository
Don't test it on the "prefix", because permissions on this directory can be
more restrictive (which could be fine ...).
Alexander Barton [Wed, 21 Sep 2022 17:38:06 +0000 (19:38 +0200)]
30_env.ax-io: Try to be even more clever when setting TMPDIR
Silently use the "runtime directory" of the user, when this is set already.
And if not, make sure to not use "/" but fallback to "/tmp" when the mktemp(1)
command failed for example.
Alexander Barton [Mon, 19 Sep 2022 19:49:06 +0000 (21:49 +0200)]
Streamline the installation instructions a bit
- Restructure some paragraphs and
- introduce new "Post-Installation Tasks" section.
- Remove redundancies.
- Add note on "per-user installation".
Alexander Barton [Sat, 27 Aug 2022 16:05:40 +0000 (18:05 +0200)]
homebrew: stat(1) is not protable! Use ls(1) and awk(1) ...
Alexander Barton [Sat, 27 Aug 2022 15:41:11 +0000 (17:41 +0200)]
homebrew: Add a wrapper function for the brew(1) command
This wrapper function for the `brew`(1) command does the following:
- Detect the location of the "real" brew(1) command.
- Change user and group when the Homebrew installation is owned by a different
user (to preserve sane file permissions).
- Set a relaxed umask(1) so that other users can use software installed by
Homebrew.
- Call the "real" `brew`(1) command.
Alexander Barton [Sun, 29 May 2022 10:51:11 +0000 (12:51 +0200)]
std_aliases: Add new "lx" alias for "ls -A"
Alexander Barton [Sat, 14 May 2022 11:25:32 +0000 (13:25 +0200)]
lsd: Don't use long options in the ls(1) alias
Both the "--date" and "--group-dirs" options are "nice", and I'd like to
set them here, but it looks like long options break the file name
completion logic: when a long option is present, you can't tab-complete
any file or folder name any more, which is _really_ annoying!
So remove those options again (for now)!?
If you wan't to use long options, like the ones removed now here, you
can use a configuration file in ~/.config/lsd/config.yaml, for example.
Alexander Barton [Sat, 14 May 2022 11:11:32 +0000 (13:11 +0200)]
New "lsd" plugin
Alexander Barton [Sun, 1 May 2022 13:51:41 +0000 (15:51 +0200)]
New "bat" plugin
Alexander Barton [Thu, 7 Apr 2022 21:03:59 +0000 (23:03 +0200)]
Fix markdownling warning MD049: Emphasis style should be consistent
Alexander Barton [Thu, 7 Apr 2022 20:56:40 +0000 (22:56 +0200)]
Update copyright notices for 2022 :-)
Alexander Barton [Fri, 4 Feb 2022 22:06:56 +0000 (23:06 +0100)]
std_functions: Make open_command() work on Linux without X11 running
Alexander Barton [Fri, 4 Feb 2022 21:58:38 +0000 (22:58 +0100)]
New "websearch" plugin
Alexander Barton [Fri, 4 Feb 2022 21:48:36 +0000 (22:48 +0100)]
std_functions: Fix return code of open_command()
Alexander Barton [Tue, 1 Feb 2022 20:19:29 +0000 (21:19 +0100)]
Write an initial PATH variable to the "ax-io" cache file
This initial PATH becomes overwritten by the path plugin at the
"zprofile" stage later on, but this way "ax-io" stage plugins have a
somewhat saner PATH to begin with ...
Alexander Barton [Tue, 1 Feb 2022 20:17:03 +0000 (21:17 +0100)]
Simplify error checking on cache file creation
Just try to write to the cache file without testing first. And the
"cache_file" variable can never be empty, see code above!
Alexander Barton [Tue, 1 Feb 2022 20:15:01 +0000 (21:15 +0100)]
Disable Powerlevel9k "instant prompt" warnings in debug mode
Alexander Barton [Tue, 1 Feb 2022 20:13:11 +0000 (21:13 +0100)]
30_path: Fix file name in header
Alexander Barton [Tue, 1 Feb 2022 20:12:33 +0000 (21:12 +0100)]
axzshctl: Be verbose for "axzshctl update-caches" in debug mode
Alexander Barton [Tue, 1 Feb 2022 20:11:55 +0000 (21:11 +0100)]
byebye: Be silent in "check mode"
Alexander Barton [Tue, 1 Feb 2022 19:22:38 +0000 (20:22 +0100)]
Git: Ignore the "debug"-mode trigger file
Alexander Barton [Sat, 22 Jan 2022 12:57:59 +0000 (13:57 +0100)]
less: Hide "ps: stdin: not a terminal" when using lesspipe.sh
Alexander Barton [Fri, 21 Jan 2022 17:41:57 +0000 (18:41 +0100)]
axttyinfo: Show COLORTERM when set
Alexander Barton [Fri, 21 Jan 2022 17:41:45 +0000 (18:41 +0100)]
axttyinfo: Show LANG only when actually set
Alexander Barton [Tue, 28 Dec 2021 16:40:44 +0000 (17:40 +0100)]
axemoji: Show host name in root prompts
Alexander Barton [Tue, 28 Dec 2021 16:40:08 +0000 (17:40 +0100)]
Refactor "root prompt" handling, don't show root "logname" by default
But still enable it for the axemoji theme, so no functional changes.
Alexander Barton [Tue, 28 Dec 2021 14:25:00 +0000 (15:25 +0100)]
Revert 'Set "path" and "manpath" as "unique" type (-U), too!'
When setting "path" to unique, PATH becomes reset on some systems? Hm??
So don't do it ...
This reverts commit
25cf1cc8c8c30f0162e551d6fdfdd84212b24395 .
Alexander Barton [Tue, 28 Dec 2021 14:00:17 +0000 (15:00 +0100)]
axzshctl: Show hint how to restart the shell when enabling AX-ZSH
Alexander Barton [Tue, 28 Dec 2021 13:59:59 +0000 (14:59 +0100)]
axzshctl wrapper: Clean up the environment when disabling AX-ZSH
Alexander Barton [Tue, 28 Dec 2021 13:15:09 +0000 (14:15 +0100)]
Fix PATH environment after plugins ran
This is especially important to keep the desired search order in place
when other plugins appended/prepended paths.
Alexander Barton [Tue, 28 Dec 2021 13:14:01 +0000 (14:14 +0100)]
Set "path" and "manpath" as "unique" type (-U), too!
Alexander Barton [Tue, 28 Dec 2021 12:47:45 +0000 (13:47 +0100)]
Fix core plugin numbering
[0-4]*: Runs pre-plugins
[5-9]*: Runs post-plugins
Alexander Barton [Wed, 15 Dec 2021 10:31:12 +0000 (11:31 +0100)]
Refactoring: Always use "[[" (instead of "[")
No functional changes.
Alexander Barton [Wed, 15 Dec 2021 10:12:39 +0000 (11:12 +0100)]
12_locale: Some minor tweaks and refactoring
- Regular expressions aren't anchored, no .* needed at the beginning/end
- fgrep is "non standard", so use "grep -F"
- Quote unknown locale name in message ...
- And use "raw mode" (-r) for read.
Alexander Barton [Mon, 13 Dec 2021 10:00:02 +0000 (11:00 +0100)]
homebrew: Make sure brew(1) command actually works
There are wrapper scripts out there -- at least my own ;-) -- which
are available even on systems where no "real" brew is available, and
therefore this wrapper errors our when called. So not only check for
brew's existence, but if it is working when checking for plugins.
Alexander Barton [Fri, 10 Dec 2021 22:18:23 +0000 (23:18 +0100)]
fzf: Update plugin to work on Fedora 35
Alexander Barton [Fri, 10 Dec 2021 20:54:33 +0000 (21:54 +0100)]
README.md: Add "integration with other projects" section
And mention Powerlevel10k support!
Alexander Barton [Fri, 10 Dec 2021 20:53:52 +0000 (21:53 +0100)]
README.md: Reformat the file a bit
- Add more links, as references at the end of the document.
- Add link to our own GitHub "homepage".
- Emphasis that you really should use Git to install AX-ZSH!
- Fix link to zdharma-continuum/fast-syntax-highlighting
Alexander Barton [Thu, 9 Dec 2021 21:28:45 +0000 (22:28 +0100)]
2021. Still ... ;)
Alexander Barton [Wed, 8 Dec 2021 21:10:26 +0000 (22:10 +0100)]
homebrew: Fix detection of Homebrew command completions
Alexander Barton [Sat, 4 Dec 2021 13:01:02 +0000 (14:01 +0100)]
neofetch: Implement axzsh_neofetch() function
This function can be used to call neofetch(1) exactly as the plugin does.
Alexander Barton [Sat, 4 Dec 2021 12:57:41 +0000 (13:57 +0100)]
Enhance handling of the Homebrew environment
- Call "brew shellenv" to set all relevant environment variables,
- and use "$HOMEBREW_PREFIX" when looking for installed files.
Alexander Barton [Sat, 4 Dec 2021 12:37:17 +0000 (13:37 +0100)]
Refactoring: Use "axzsh_" prefix (instead of "ax_") for all functions & variables
New function names:
- axzsh_hostname_prompt_root()
- axzsh_hostname_prompt_yn()
- axzsh_logname_prompt_root()
- axzsh_logname_prompt_yn()
- axzsh_plugin_fnc()
- axzsh_plugin_init()
- axzsh_prompt()
- axzsh_vcs_prompt()
- _axzsh_ssh_prompt()
New array names:
- axzsh_hostname_prompt_functions
- axzsh_logname_prompt_functions
- axzsh_vcs_prompt_functions
Alexander Barton [Wed, 25 Aug 2021 14:05:17 +0000 (16:05 +0200)]
std_functions: Add (very simple) "open" function
Right now, this supports macOS (Darwin), Cygwin and Linux.
Alexander Barton [Sat, 24 Jul 2021 11:33:33 +0000 (13:33 +0200)]
40_path: Add Go and Cargo bin paths to $PATH when they exist
Alexander Barton [Sat, 24 Jul 2021 11:24:26 +0000 (13:24 +0200)]
git: Add "gsta" and "gstp" aliases for Git stash push/pop
Alexander Barton [Mon, 5 Jul 2021 20:01:13 +0000 (22:01 +0200)]
30_env.ax-io: Try to use a user-specific subfolder when TMPDIR is not set
Alexander Barton [Tue, 1 Jun 2021 13:00:41 +0000 (15:00 +0200)]
git: Bring aliases in line with OhMyZsh (and extend our list!)
Changed:
* gc: Add "--verbose"
* gd: Remove "--patch-with-stat"
* gst: Use default format
Removed:
* gdc: Deprecated in OhMyZsh ...
New:
* g
* gapa
* gdca
* gdcw
* gdw
* gf
* gfa
* gl
* gp
* gsb
* gsh
* gss
Alexander Barton [Fri, 30 Apr 2021 11:26:29 +0000 (13:26 +0200)]
axzshctl: Allow dashes in OhMyZsh plugin names
Alexander Barton [Fri, 30 Apr 2021 11:10:57 +0000 (13:10 +0200)]
Greatly enhance the README.md file
Alexander Barton [Fri, 30 Apr 2021 11:03:19 +0000 (13:03 +0200)]
Add support for remote OhMyZsh plugins
OhMyZsh plugins are referenced by an "@ohmyzsh/<name>" identifier, and
the OhMyZsh source tree is cloned with Git as needed.
Alexander Barton [Fri, 30 Apr 2021 11:02:28 +0000 (13:02 +0200)]
std_aliases: Use "last -aw" for "lastf" and "lasth" aliases
Alexander Barton [Fri, 30 Apr 2021 10:58:35 +0000 (12:58 +0200)]
axzshctl: Fix syntax of "set-theme" in help output
Alexander Barton [Fri, 30 Apr 2021 10:57:30 +0000 (12:57 +0200)]
install.sh: Correctly report an error when "zsh" is not found
Alexander Barton [Thu, 8 Apr 2021 08:58:32 +0000 (10:58 +0200)]
fzf: Newer Debian/Ubuntu packages use a different folder layout
Alexander Barton [Fri, 2 Apr 2021 18:33:57 +0000 (20:33 +0200)]
googler: Use "g0" alias to not clash with OhMyZsh "g" alias for "git"
Alexander Barton [Mon, 29 Mar 2021 17:49:48 +0000 (19:49 +0200)]
axzshctl: Validate plugin names in EnablePlugin()
Alexander Barton [Mon, 29 Mar 2021 17:48:29 +0000 (19:48 +0200)]
ax.zsh: Put new cache files in place only after they are complete