Commit Graph

107 Commits

Author SHA1 Message Date
Peter Solodov 9c69a81354 remove directory check
just skip the first argument and pass the rest as is. checking for directory
breaks cd'ing to symlinked directories
2024-02-14 19:04:41 -05:00
Peter Solodov b50ee1d9ea support autocd option
In bash, when autocd option is set and user enters a directory name as a
command, it results in a very specific call to cd:

cd -- [directory name]

zoxide's directory changing function passes all arguments to __zoxide_z as is,
including the "--" first argument. By detecting this and skipping the first
argument changing directory works with autocd set.
2024-02-14 18:46:39 -05:00
Zuruh f32dc6bcd8
Update nushell template to use rest operator where needed (#663) 2024-02-13 03:01:04 +05:30
Ajeet D'Souza 3022cf3686 Fix CI 2023-11-21 02:48:58 +05:30
hackers267 f537a4e6d2
Update min version of Nushell 0.86.0 (#632)
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2023-11-19 14:10:52 +05:30
matan h 3898d99f0c
Use `global` scope for PowerShell variables / functions (#597)
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2023-08-04 07:25:48 +05:30
JT 786519aa8f
Update nushell env update syntax (#587) 2023-07-01 01:01:08 +05:30
Ajeet D'Souza 74ccc0232f
Support for PWD hooks on all versions of PowerShell (#563) 2023-05-07 19:19:53 +05:30
Ajeet D'Souza 0b51cb6591
Improve completions (#562) 2023-05-06 20:48:19 +05:30
Ajeet D'Souza a7c8231e56 Update GitHub Actions 2023-05-05 13:24:44 +05:30
Ajeet D'Souza 56956779b2 Consistent style for environment variables 2023-04-16 19:54:55 +05:30
Ajeet D'Souza 4dff2b1602 Add support for older Fish versions 2023-04-15 00:08:16 +05:30
Lily Mara 4f475a75cb
Nushell: use new lambda syntax 2023-04-15 00:05:05 +05:30
Ajeet D'Souza 86741bbe6a Define completions on __zoxide_z 2023-01-08 07:51:03 +05:30
Ajeet D'Souza 3ab0a7b8fd
Edit subcommand (#498) 2023-01-07 22:58:10 +05:30
Ajeet D'Souza 7af4da1dab fzf: enable colors in preview when possible on macOS / BSD 2022-12-09 02:29:01 +05:30
Ajeet D'Souza 82d4f73aae
Use tab to cycle through completions (#496) 2022-12-09 01:35:13 +05:30
Ajeet D'Souza e8c5f7a975
Upgrade Nushell to v0.73.0 (#495) 2022-12-08 23:24:43 +05:30
Ajeet D'Souza 4a47da0ed4
Don't hide output from chpwd hooks (#474) 2022-10-28 18:58:07 +05:30
Ajeet D'Souza 9d9bcfcac2 Handle UTF-8 output correctly in PowerShell 2022-09-18 11:33:41 +05:30
Aaron Kollasch 1d102d4ad2
Fix interactive completion with zsh-autocomplete (#449) 2022-09-06 13:18:44 +05:30
Ajeet D'Souza b38b89eb3b Add PWD hooks to Nushell (#439) 2022-08-13 13:18:21 +05:30
Ajeet D'Souza b0c899b99f Support `z -` in Nushell 2022-08-12 13:03:19 +05:30
Ajeet D'Souza 535762b80a
Fix double forward slash in Bash completions (#438) 2022-08-12 08:16:28 +05:30
Ajeet D'Souza e4b9e12b0f Improved preview window for fzf 2022-08-04 21:45:08 +05:30
Mark Keisler 1306fba4ac zsh: allow `z` to navigate dirstack via `+n` and `-n` 2022-07-26 13:27:06 +05:30
Ajeet D'Souza e7cc34b359 Change change fuzzy completion prefix to `z!` 2022-07-04 17:16:35 +05:30
Ajeet D'Souza f830fbd670 Add minimum supported version for Fish 2022-07-01 15:03:30 +05:30
Ajeet D'Souza 7c7a2a0a3c
Add cargo-deb metadata (#409) 2022-06-26 00:37:44 +05:30
Ajeet D'Souza 10c11310ed
Escape spaces correctly in Bash completions (#408) 2022-06-25 17:20:28 +05:30
Ajeet D'Souza 4bf470dff6 Use nextest in CI 2022-05-19 17:12:25 +05:30
NextAlone 7d0ddedc6b
fix: interactive completion for fish (#385)
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2022-04-27 19:05:52 +05:30
Ajeet D'Souza 6b2c6a2bc3 Fix Windows paths on Fish+Cygwin 2022-04-27 02:53:22 +05:30
Ajeet D'Souza 612f264dd4
Upgrade to Nushell 0.61 (#362) 2022-04-22 13:11:11 +05:30
Kid 24d21ec8ab
Simplify fish init script (#370) 2022-04-17 14:36:47 +05:30
Ajeet D'Souza b71d33b5c1 Replace `--no-aliases` with `--no-cmd` 2022-04-11 03:41:51 +05:30
skwerlman a0242d7c9a
Switch elvish template to new try/catch syntax (#371) 2022-03-31 16:50:29 +05:30
Ajeet D'Souza 17365710af Copy owner from previous database file (#364) 2022-03-09 19:59:39 +05:30
Ajeet D'Souza df148c834f
Require bash 4.4+ for completions (#354) 2022-02-25 04:15:19 +05:30
cherryblossom000 e34b6f930a Use elvish v0.17 lambda syntax in completions generation (#334) 2022-01-12 13:11:48 +05:30
Ajeet D'Souza fe553585e9 Use -- with cd so paths aren't treated as options 2021-12-31 04:52:14 +05:30
Ajeet D'Souza 027d259c89 Use long arguments for commands in Fish shell 2021-12-30 04:02:23 +05:30
Ajeet D'Souza d106f4e358
Rename _z function (#324) 2021-12-28 23:40:10 +05:30
Ajeet D'Souza 339a789261 Avoid using completions on older Bash versions 2021-12-24 10:04:37 +05:30
Ajeet D'Souza bd54ea3ea9 Ignore CRLF for shell scripts (#315) 2021-12-15 01:15:39 +05:30
Tushar ff28b02801
Add path escapes for powershell (#313) 2021-12-13 12:16:12 +05:30
Ajeet D'Souza 58430d8c54 Add z completions for zsh (#309) 2021-12-05 14:51:32 +05:30
Ajeet D'Souza 72fd48ed97 Make fish completions consistent with Bash 2021-12-03 03:52:20 +05:30
Ajeet D'Souza 3e03ccccd6 Use better defaults for fzf 2021-12-02 00:55:33 +05:30
Oliver Mannion c392a8bb75
Fix errors with set -eu (#302) 2021-11-20 01:52:15 +05:30