addet some snippets
This commit is contained in:
parent
ad33734063
commit
cf3458042f
4 changed files with 30 additions and 13 deletions
4
lua/telesnip/snippets/bash/command_exists.sh
Normal file
4
lua/telesnip/snippets/bash/command_exists.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||
command_exists() {
|
||||
command -v "$@" >/dev/null 2>&1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue