diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-09-27 17:01:32 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-09-27 17:07:46 +0200 |
commit | 03fb0e46ca19a4486a7c104ce0b70b346869a467 (patch) | |
tree | f0ed222c66c85a79f69f9f69f1de38dce42e5414 /01_Internal.zsh | |
parent | da9ec47882b091c0d95f2ef57b83f2f3889aa8ab (diff) |
[Keys] Asks confirmation before exiting top zsh process
Diffstat (limited to '01_Internal.zsh')
-rw-r--r-- | 01_Internal.zsh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh index 8624ede..df9731e 100644 --- a/01_Internal.zsh +++ b/01_Internal.zsh @@ -631,3 +631,8 @@ _process_tree() done } +# Asks confirmation before executing parameters +confirm() { + read -q "?Are you sure? " && $@ +} + |