Commit graph

2033 commits

Author SHA1 Message Date
Harry Green 208bfe329f Add install script 2022-08-06 22:54:05 +12:00
Harry Green 35f8bf05ae Update aliases 2022-08-06 22:52:24 +12:00
Harry Green d3a31b31a0 Switch docker-compose aliases over to new version 2022-08-06 22:52:24 +12:00
Harry Green e2c78e2ff0 Update gbdm alias 2022-08-06 22:52:24 +12:00
Harry Green c4344839e9 Disable cursor highlighting 2022-08-06 22:52:24 +12:00
Harry Green 97f00c48d9 Add alias for wttr.in 2022-08-06 22:50:43 +12:00
Harry Green 89a1e2f205 Add a new directory to $PATH 2022-08-06 22:49:47 +12:00
Harry Green 7a0ed36720 Add FNM 2022-08-06 22:49:17 +12:00
Harry Green fa961d5300 Use official node module instead of loading nvm manually 2022-08-06 22:48:22 +12:00
Harry Green 6bb3c09028 Disable command autocorrect 2022-08-06 22:47:04 +12:00
Harry Green 7d7efe3dc0 Configuration 2022-08-06 22:44:17 +12:00
Harry Green 7e132cbe08 Disable cursor highlighting 2022-08-06 22:42:09 +12:00
Harry Green 044031c28b Fix issues with FNM 2022-08-06 22:42:08 +12:00
Harry Green b2bf15c914 FNM & Spaceship prompt 2022-08-06 22:41:52 +12:00
Harry Green c993297452 Add alias for wttr.in 2022-08-06 22:40:31 +12:00
Harry Green 151e9bb60b Tidy PATH definitions 2022-08-06 22:40:29 +12:00
Harry Green 7957dfabae Add FNM 2022-08-06 22:40:08 +12:00
Harry Green 2063d2ecd2 Add a new directory to $PATH 2022-08-06 22:40:06 +12:00
Joost Cassee 33f0d6185c Ask pyenv whether pip exists if installed (#1848)
Pyenv will install shims for commands that exist in any interpreter, even if it is not the current one. This means that a command may technically exist, but when executed will tell the user to try a different interpreter. The original check for pip in the Python module can fail for this reason, in particular on Ubuntu 20.04.

This change checks with pyenv whether pip really exists in the current interpreter to work around this problem and fixes a bug in pip command detection.
2022-08-06 22:40:04 +12:00
hidekuro 7a95d0d83b Remove --all from git alias glg (#1853) 2022-08-06 22:40:02 +12:00
Texas Toland aad323af60 Make .zcomp* location configurable (#1842) 2022-08-06 22:39:59 +12:00
Zac Bergquist 3e8f553f13 homebrew: load helper dependency
Updates #1815
2022-08-06 22:39:51 +12:00
Vladimir Bauer a4cedd2faa Use shallow clone for powerlevel9k and powerlevel10k submodules (#1819) 2022-08-06 22:39:49 +12:00
Srijan R Shetty 5ae2f2d2a2 fix: regression in homebrew module (#1816) 2022-08-06 22:39:44 +12:00
Charith Amarasinghe bc313f8846 Fix missing dependency on helper module for helpers added in #1793 (#1811)
PR #1793 introduced helper functions for OS detection in some modules.
These helpers require a module dependency on the 'helper' module.
2022-08-06 22:39:44 +12:00
Kaspar Vollenweider 2477c103b1 feat(helper): add os-type helper functions
Add the following functions:

- is-darwin
- is-linux
- is-bsd
- is-cygwin

And apply them everywhere I found code doing that what these functions do.
2022-08-06 22:39:34 +12:00
Kaleb Elwert 6a1f2f1c3e Update syntax-highlighting module 2022-08-06 22:39:24 +12:00
Harry Green 42edfcd609 Add FNM 2022-08-06 22:38:28 +12:00
Harry Green 09c2d8a743 Enable updating terminal window/tab titles 2022-08-06 22:38:28 +12:00
Harry Green 7502e6ac1b Use official node module instead of loading nvm manually 2022-08-06 22:38:28 +12:00
Harry Green 4e9e9ef165 Replace dssh alias with a function which can be used to specify a container name 2022-08-06 22:38:28 +12:00
Harry Green 66a69a0dd9 Add some new modules and extend history size 2022-08-06 22:38:24 +12:00
Harry Green f4e1f01c85 Disable command autocorrect 2022-08-06 22:37:49 +12:00
Harry Green 766892f047 Add aliases for docker-compose up/down and reloading zsh config 2022-08-06 22:37:49 +12:00
Harry Green a03b575aac Fix nvm loading script 2022-08-06 22:37:49 +12:00
Harry Green bce7d6d7f5 Update $PATH variable, add git alias 2022-08-06 22:37:48 +12:00
Harry Green 73fabc3353 Add a new directory to $PATH 2022-08-06 22:36:55 +12:00
Harry Green a56cb654e2 Add XDG environment variables. Add NVM. Update Composer global path. Disable Yarn path. 2022-08-06 22:34:26 +12:00
Harry Green 4ebf6c2dd4 Add home alias 2022-08-06 22:34:26 +12:00
Harry Green 77e70f47ec Configuration 2022-08-06 22:34:25 +12:00
Shea690901 51c4ff6de4 feat(module/ssh): add globbing for ssh-add param
fixes #2000

Signed-off-by: Shea690901 <ginny690901@hotmail.de>
2022-08-03 18:52:34 -05:00
Indrajit Raychaudhuri 3ea20cfbe8 utility: Make 'http-serve' handler faster for well known cases
In most systems, python2 or python3 command/soft-link would almost
always exist. In such cases, we don't need to invoke `python` to
detect the version. This should speed things up a bit as well.
2022-08-03 18:51:49 -05:00
Indrajit Raychaudhuri 0aef8086b5 completion: Update completion submodule to 0.34.0 2022-08-03 18:51:49 -05:00
Ilkin Bayramli b2bc66ce9d
Add Fig as an installation method to the README 2022-06-15 10:42:21 -07:00
Ben 3a471a05f9 Update docker compose references
Docker For Mac has broken support for `docker-compose`. 

Since `docker compose` is a drop in replacement and it Just Works™, this PR converts `docker-compose` to `docker compose`
2022-06-14 15:06:05 -05:00
Eugen Blattner 12df1363ce fix: heading level for new hist file settings 2022-04-11 11:38:44 -07:00
Shea690901 dea85a0740 feat(module/history): add full configurability
While previusly configurable, it was inconsistent with other
configuration options and it was missing configurability of in memory /
on disc history size.

Signed-off-by: Shea690901 <ginny690901@hotmail.de>
2022-04-09 07:46:25 -05:00
Indrajit Raychaudhuri 3dc3fa7f8c zprofile: Expand the default list of well known paths
Two additional sets of paths are now added to the default list of well
known paths: '$HOME/{bin,sbin}' and '/opt/{homebrew,local}/{bin,sbin}'.

- '$HOME/{bin,sbin}': Most users have custom scripts in '$HOME/bin'
anyway, we might as well honor those. '$HOME/sbin' is not really common,
but we can keep it for consistency.
- '/opt/{homebrew,local}/{bin,sbin}': With Homebrew changing default
installation location in macOS on Apple Silicon which will eventually
become ubiquitous, we have a good reason to add these paths by default.
While at it, we also honor MacPorts installation.

In all cases, we add them _iff_ the paths actually exist, not otherwise.
This has the side effect of a newly installed program not available
immediately in the '$path' in a mint fresh system (because of the fact
that '/opt/{homebrew,local}/{bin,sbin}' won't exist initially) until the
shell is reloaded. But that's a minor inconvenience to keep the '$path'
from getting unnecessarily bloated.
2022-04-08 14:30:45 -05:00
Indrajit Raychaudhuri c857e809c3 command-not-found: Detect Homebrew repo internally, not idiomatically
For performance reasons, we prefer detecting Homebrew prefix internally
instead of the more idiomatic form `brew --repository`.

We attempt looking up $HOMEBREW_REPOSITORY first (in case `brew shellenv`
has been sourced-in earlier). Else, we look it up by resolving absolute
path of $HOMEBREW_REPOSITORY.

This should work for most standard (and officially documented) Homebrew
installations.
2022-04-08 14:23:51 -05:00
Indrajit Raychaudhuri ac1c39d2e1 completion: Detect Homebrew prefix internally, not idiomatically
For performance reasons, we prefer detecting Homebrew prefix internally
instead of the more idiomatic form `brew --prefix`.

We attempt looking up $HOMEBREW_PREFIX or $HOMEBREW_REPOSITORY first (in
case `brew shellenv` has been sourced-in earlier). Else, we look it up
by resolving absolute path of $HOMEBREW_REPOSITORY. $HOMEBREW_PREFIX is
same as $HOMEBREW_REPOSITORY except when Homebrew is installed in
'/usr/local' ($HOMEBREW_REPOSITORY == '/usr/local/Homebrew'). This is
usually the case for Intel Macs.

This should work for most standard (and officially documented) Homebrew
installations.

For implementation details in Homebrew,
see: 2a850e02d8/bin/brew (L62-L70)

Co-authored-by: mattmc3 <mattmc3@gmail.com>
2022-04-08 14:23:51 -05:00