mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-18 03:55:13 +02:00
_autoenv_get_file_upwards: handle relative paths
If `$look_from` is `.` the resulting file patch will be relative.
This commit is contained in:
@@ -13,6 +13,8 @@ Should not get the file from the current dir.
|
||||
|
||||
$ cd sub/sub2
|
||||
$ _autoenv_get_file_upwards . file
|
||||
../file
|
||||
$ _autoenv_get_file_upwards $PWD file
|
||||
*/_autoenv_utils.t/sub/file (glob)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user