Louis Feuvrier
29d5926f3a
Cleanup temporary $result variables
...
After we call `$(zoxide query $input)`, we store it in `$result` in all
shells. This `result` environment variables survives after the call.
To fix this undesirable behavior, we rename the temporary variable to
something less ubiquitous (`_ZO_RESULT`,) as well as unset it after the
`cd`/`echo` has been done.
For the record, I noticed this because I use `%~` in my zsh `PS1`, which
has a tendency to re-use set environment variables in the path, ie:
```
pete:~$ z code/misc/rustyline
pete:~/code/misc/rustyline$ z
pete:~$ z rusty
pete:~result$ _
```
As you can see, on the second cd, the prompt path is `result`. This
hides the prompt information. I have not tested the fish and powershell
implementations, as I do not have the capabilities to do so.
2020-06-26 15:11:35 -07:00
Spencer Woo
5864cd5564
Add `windows-msvc` cargo build target to GitHub Actions ( #86 )
2020-06-13 19:05:54 +05:30
Stavros Korokithakis
1ce74baf3b
Increase the _ZO_MAXAGE default ( #84 )
2020-06-08 13:14:36 +05:30
Ajeet D'Souza
922e2e4847
Add demo GIF to README
2020-05-30 05:08:30 +05:30
Ajeet D'Souza
27389cee25
Add installation instructions for CentOS
2020-05-28 17:45:28 +05:30
Ajeet D'Souza
bc0ca7b82c
Release v0.4.1
2020-05-25 02:55:00 +05:30
Ajeet D'Souza
eaf6ef5900
Minor refactor
2020-05-25 00:39:27 +05:30
Ajeet D'Souza
edf3c68a7c
Avoid long variable names
2020-05-16 18:23:38 +05:30
Ajeet D'Souza
dad0f60b28
Use util::path_to_str for path conversions
2020-05-16 17:59:21 +05:30
Ajeet D'Souza
208a6a9eb8
Convert paths to String
2020-05-16 17:31:11 +05:30
Ajeet D'Souza
3f74a81851
Add version badge to README.
2020-05-16 05:34:08 +05:30
Ajeet D'Souza
efd615b910
Optimize query algorithm
2020-05-15 19:40:54 +05:30
Ajeet D'Souza
08cf7dfa86
Merge branch 'master' of github.com:ajeetdsouza/zoxide
2020-05-15 18:25:21 +05:30
Ajeet D'Souza
0c1143fe34
Remove streaming serde for database
2020-05-15 18:13:24 +05:30
Igor Raits
030679b6f5
README: Add Fedora instructions ( #72 )
2020-05-15 16:09:19 +05:30
Jason Shirk
5cdd8fd599
Add support for PowerShell ( #65 )
2020-05-06 11:33:06 +05:30
Ajeet D'Souza
12c6ce0076
Update CHANGELOG
2020-05-04 01:10:43 +05:30
Ajeet D'Souza
0c3a8a79c3
Remove compatibility with v0.2.x databases
2020-05-04 01:09:01 +05:30
Ajeet D'Souza
23eea59c70
Release v0.4.0
2020-05-03 18:11:35 +05:30
Ajeet D'Souza
0e936fede1
Rename --no-define-aliases flag to --no-aliases
2020-05-03 18:09:54 +05:30
Ajeet D'Souza
e0572a4569
Rename --z-cmd flag to --cmd
2020-05-03 15:15:40 +05:30
Fredrik Sommar
f19aa07145
Aliases respect the z-cmd arg ( #70 )
...
When changing the z-cmd to something like `j` instead, the aliases will also use `j` as a prefix, e.g. `ji`, `ja`.
2020-05-03 14:58:01 +05:30
Ajeet D'Souza
4731533352
$_ZO_ECHO must be set to `1` to be enabled
2020-05-03 02:42:42 +05:30
Ajeet D'Souza
e4dae1dd54
Improve interactive mode in `zoxide remove`
2020-05-03 02:12:58 +05:30
Ajeet D'Souza
f94d1375a8
Properly quote paths in POSIX
2020-05-02 21:57:46 +05:30
Ajeet D'Souza
b4a2de1d5a
Update CHANGELOG
2020-05-02 16:34:55 +05:30
Ajeet D'Souza
7532fe98d8
Add PWD hook for POSIX shells
2020-05-02 16:31:53 +05:30
Ajeet D'Souza
7eed1ed9c3
Switch default hook to PWD.
2020-05-02 01:25:57 +05:30
Cole Helbling
58969e22a2
Fix `cd`ing home when no matching directory in `fish` ( #64 )
...
Fix `cd`ing into `$HOME` when no match is found in `fish` shell
2020-04-11 10:09:34 +05:30
Ajeet D'Souza
0d860503ae
Remove unnecessary derive
2020-04-11 03:00:50 +05:30
Jason Shirk
a4b202f9da
Canonicalize to regular paths instead of UNC paths on Windows
2020-04-10 00:13:16 +05:30
Ajeet D'Souza
aab37dfab9
Update ranger plugin
2020-04-08 01:36:15 +05:30
Radu Ioan Fericean
f4cf811155
Fix ranger plugin ( #59 )
...
Remove query prefix from ranger plugin
2020-04-08 01:06:01 +05:30
Ajeet D'Souza
56218f35d3
Interactive mode for `zoxide remove`
2020-04-06 08:41:28 +05:30
Ajeet D'Souza
b21dbefa22
Don't show error if fzf exits gracefully
2020-04-05 22:31:32 +05:30
Ajeet D'Souza
2f73465d8d
Saving DB should clear the modified flag
2020-04-05 21:39:21 +05:30
Ajeet D'Souza
bf76a4e9c1
Update README
2020-04-05 20:45:59 +05:30
Ajeet D'Souza
342954cda0
Performance improvements
2020-04-05 20:44:23 +05:30
Ajeet D'Souza
4414898a06
Release v0.3.1
2020-04-03 18:44:38 +05:30
Ajeet D'Souza
0155812949
Update CHANGELOG
2020-04-03 18:32:31 +05:30
Ajeet D'Souza
ede121ef8b
Add flag to change z command
2020-04-03 12:03:38 +05:30
Ajeet D'Souza
d3e49bde66
Remove 'query: ' prefix from 'zoxide query'
2020-04-03 02:22:50 +05:30
Ajeet D'Souza
fdf46d34b9
Check for top-level directory match
2020-04-03 02:20:59 +05:30
Thomas Harmon
ee923c6822
Add note to README about fix for v0.2->v0.3 db incompatability error ( #53 )
2020-04-02 19:10:30 +05:30
Cole Helbling
1e333dfb33
Show commit hash in version number
2020-04-01 03:24:45 +05:30
Ajeet D'Souza
0191eead52
Prepare v0.3.0 release
2020-03-30 07:13:18 +05:30
Ajeet D'Souza
8abba828ea
Merge pull request #46 from ajeetdsouza/v0.3
...
zoxide v0.3
2020-03-30 07:09:01 +05:30
Ajeet D'Souza
9d0222383f
Style nits
2020-03-30 06:49:41 +05:30
Ajeet D'Souza
ad96db844c
Add CHANGELOG.md
2020-03-30 06:48:49 +05:30
Ajeet D'Souza
3c7d100ab1
Guarantee unique file names for temporary database
2020-03-30 03:32:21 +05:30