File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ geometry_plugin_setup() {
20
20
# Registers a plugin
21
21
geometry_plugin_register () {
22
22
if [[ $# -eq 0 ]]; then
23
- echo " Error: Missing argument."
23
+ >&2 echo " Error: Missing argument."
24
24
return 1
25
25
fi
26
26
27
27
local plugin=$1
28
28
# Check plugin wasn't registered before
29
29
if [[ ! $_GEOMETRY_PROMPT_PLUGINS [(r)$plugin ] == " " ]]; then
30
- echo " Warning: Plugin $plugin already registered."
30
+ >&2 echo " Warning: Plugin $plugin already registered."
31
31
return 1
32
32
fi
33
33
34
34
# Check plugin has been sourced
35
35
local plugin_setup_function=" geometry_prompt_${plugin} _setup"
36
36
if [[ $+functions[$plugin_setup_function ] == 0 ]]; then
37
- echo " Error: Plugin $plugin not available."
37
+ >&2 echo " Error: Plugin $plugin not available."
38
38
return 1
39
39
fi
40
40
@@ -48,7 +48,7 @@ geometry_plugin_unregister() {
48
48
local plugin=$1
49
49
# Check plugin is registered
50
50
if [[ $_GEOMETRY_PROMPT_PLUGINS [(r)$plugin ] == " " ]]; then
51
- echo " Error: Plugin $plugin not registered."
51
+ >&2 echo " Error: Plugin $plugin not registered."
52
52
return 1
53
53
fi
54
54
You can’t perform that action at this time.
0 commit comments