mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Basic logging implementation
This commit is contained in:
parent
47998e74c4
commit
41e06d6630
1 changed files with 8 additions and 0 deletions
8
lib/logging.zsh
Normal file
8
lib/logging.zsh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
omz_log_msg() {
|
||||||
|
[[ ! -d $OMZ ]] && mkdir $OMZ
|
||||||
|
echo $@ >> $OMZ/omz.log
|
||||||
|
}
|
||||||
|
|
||||||
|
omzlog() {
|
||||||
|
less $OMZ/omz.log
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue