mirror of
https://codeberg.org/hyperreal/home-manager
synced 2024-11-01 15:33:05 +01:00
Remove newline from date output
This commit is contained in:
parent
d92d4a4326
commit
475c8f2201
@ -179,13 +179,13 @@ function dstack() {
|
||||
# Print timestamp as %Y-%m-%d %H:%M:%S.
|
||||
function tstamp() {
|
||||
emulate -L zsh
|
||||
date '+%Y-%m-%d %H:%M:%S'
|
||||
date '+%Y-%m-%d %H:%M:%S' | tr -d '\n'
|
||||
}
|
||||
|
||||
# Print timestamp as %Y-%m-%dT%H:%M:%S%:z
|
||||
function tstampz() {
|
||||
emulate -L zsh
|
||||
date '+%Y-%m-%dT%H:%M:%S%:z'
|
||||
date '+%Y-%m-%dT%H:%M:%S%:z' | tr -d '\n'
|
||||
}
|
||||
|
||||
# Create a /overview/ of all available function()'s; the description for
|
||||
|
Loading…
Reference in New Issue
Block a user