Skip to content

Commit

Permalink
Add note regarding how cmd parameters work
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Jul 11, 2022
1 parent aca9425 commit 2ccc6be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cfg_samples/kanata.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,16 @@

;; Having a cmd action in your configuration without explicitly enabling
;; `danger-enable-cmd` will make kanata refuse to load your configuration.
;; So these are commented out since commands aren't allowed by this
;; The aliases below are commented out since commands aren't allowed by this
;; configuration file.
;;
;; Note that the parameters to `cmd` executed directly as opposed to
;; passed to a shell. So for example, `~` and `$HOME` would not refer
;; to your home directory on Linux.
;;
;; You can use:
;; `cmd bash -c "your_stuff_here"` to run your command inside of bash.
;;
;; cm1 (cmd bash -c "echo hello world")
;; cm2 (cmd rm -fr /tmp/testing)
)
Expand Down

0 comments on commit 2ccc6be

Please sign in to comment.