mirror of
https://codeberg.org/hyperreal/home-manager
synced 2024-11-01 17:33:06 +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.
|
# Print timestamp as %Y-%m-%d %H:%M:%S.
|
||||||
function tstamp() {
|
function tstamp() {
|
||||||
emulate -L zsh
|
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
|
# Print timestamp as %Y-%m-%dT%H:%M:%S%:z
|
||||||
function tstampz() {
|
function tstampz() {
|
||||||
emulate -L zsh
|
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
|
# Create a /overview/ of all available function()'s; the description for
|
||||||
|
Loading…
Reference in New Issue
Block a user