feat(zsh): add a simple timer to zle to test tmout
This commit is contained in:
parent
5a86a04e37
commit
eb3eea721d
1 changed files with 12 additions and 0 deletions
|
@ -10,6 +10,18 @@
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
history.ignoreDups = true;
|
history.ignoreDups = true;
|
||||||
history.ignoreSpace = true;
|
history.ignoreSpace = true;
|
||||||
|
initContent =
|
||||||
|
lib.mkOrder 1200
|
||||||
|
# zsh
|
||||||
|
''
|
||||||
|
RPROMPT='[%D{%L:%M:%S %p}]'
|
||||||
|
|
||||||
|
TMOUT=1
|
||||||
|
|
||||||
|
TRAPALRM() {
|
||||||
|
zle reset-prompt
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue