sh: Add conditionals to plugin loading
This commit is contained in:
parent
d3d13b3083
commit
99a3c0d314
2 changed files with 5 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ t() {
|
|||
# copy the `task` zsh completions over to my little alias 😉
|
||||
# this is not very pretty and not super portable (needs ps) but
|
||||
# works for now. from here: https://unix.stackexchange.com/a/72564/414758
|
||||
if [ "$(ps -p $$ -o comm --no-headers)" = "zsh" ]; then compdef t=task; fi
|
||||
if exist task && [ "$(ps -p $$ -o comm --no-headers)" = "zsh" ]; then compdef t=task; fi
|
||||
|
||||
# Make taskopen XDG conforming. If changing here, also change in taskrc alias.
|
||||
alias taskopen='taskopen --config=${XDG_CONFIG_HOME:-~/.config}/task/taskopenrc'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue