1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-25 00:10:59 +02:00
zsh-autoenv/tests/autoenv_utils.t
2018-09-14 03:46:43 +02:00

30 lines
545 B
Raku

Tests for provided utils/helpers.
$ source $TESTDIR/setup.zsh || return 1
$ PATH=
$ autoenv_prepend_path custom_path
$ echo $PATH
custom_path
$ autoenv_prepend_path custom_path
$ echo $PATH
custom_path
$ autoenv_prepend_path another_path a_third_one
$ echo $PATH
a_third_one:another_path:custom_path
$ autoenv_remove_path another_path a_third_one
$ echo $PATH
custom_path
$ autoenv_remove_path does_not_exist
[1]
$ echo $PATH
custom_path
$ autoenv_remove_path custom_path
$ echo PATH:$PATH
PATH: