Ajeet D'Souza
c1d7c4f4c7
Add support for ksh ( #885 )
2024-09-13 05:00:42 +05:30
solodov
8da8f50eaa
support autocd option ( #695 )
...
* 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.
* remove directory check
just skip the first argument and pass the rest as is. checking for directory
breaks cd'ing to symlinked directories
* undo some of the hackery
tests are failing
2024-06-25 22:47:33 +05:30
Ajeet D'Souza
0b51cb6591
Improve completions ( #562 )
2023-05-06 20:48: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
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
Ajeet D'Souza
b71d33b5c1
Replace --no-aliases
with --no-cmd
2022-04-11 03:41:51 +05:30
Ajeet D'Souza
df148c834f
Require bash 4.4+ for completions ( #354 )
2022-02-25 04:15:19 +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
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
58430d8c54
Add z completions for zsh ( #309 )
2021-12-05 14:51:32 +05:30
Ajeet D'Souza
3e03ccccd6
Use better defaults for fzf
2021-12-02 00:55:33 +05:30
Ajeet D'Souza
ba7b445348
Improved completions for Fish
2021-11-01 22:11:28 +05:30
Ajeet D'Souza
904bfd46e7
Improved completions for Bash
2021-10-31 17:33:15 +05:30
Kid
2f2f588595
Improve Fish's completions ( #212 )
2021-09-18 22:56:43 +05:30
Ajeet D'Souza
bc8958943b
Simplify hook logic
2021-09-09 09:21:46 +05:30
Ajeet D'Souza
ecc64be909
Add bash/elvish completions for z ( #257 )
2021-09-04 16:01:50 +05:30
Ajeet D'Souza
06f5a8e684
Remove preceding semicolon in PROMPT_COMMAND
2021-07-21 23:35:33 +05:30
Ajeet D'Souza
e3c3c181a2
Remove conflicting alias definitions ( #237 )
2021-07-21 02:39:18 +05:30
Ajeet D'Souza
6d3cb4bc99
Rename variables
2021-05-04 02:42:43 +05:30
Ajeet D'Souza
697afe7ba6
Fix return values in Bash hook ( #196 )
2021-04-29 01:23:43 +05:30
Ajeet D'Souza
0f5fde5afa
Add default prompt for nushell ( #191 )
2021-04-27 17:39:09 +05:30
Ajeet D'Souza
6248f539db
Add support for Elvish ( #174 )
2021-04-09 00:05:42 +05:30
Ajeet D'Souza
0b7b29e0e8
Make z exclude current directory ( #173 )
2021-04-04 20:06:44 +05:30
Ajeet D'Souza
4224f494ed
Append __zoxide_hook to front of PROMPT_COMMAND ( #170 )
2021-04-02 21:02:15 +05:30
Ajeet D'Souza
a9b731d80c
Remove barely-used aliases ( #158 )
2021-03-14 03:04:30 +05:30
Ajeet D'Souza
bc81154c5d
Use variable to prevent hook redefinition ( #154 )
2021-03-06 18:25:13 +05:30
Ajeet D'Souza
22d19a74b2
Use /dev/null on Unix shells ( #152 )
2021-03-01 11:40:10 +05:30
Ajeet D'Souza
d89605ffef
Use \builtin in shells ( #141 )
2021-01-29 01:12:31 +05:30
Ajeet D'Souza
e6e67b16bc
Use Nix for testing
2020-11-14 11:35:47 +05:30
Ajeet D'Souza
58bcbef7aa
Split tests
2020-11-11 01:06:40 +05:30
Ajeet D'Souza
5c3af59ba6
Add interactive query/remove and import
2020-10-27 00:11:40 +05:30