chezmoi init

This commit is contained in:
Cy Pokhrel 2024-10-22 11:11:45 -04:00
commit 530d6d7195
No known key found for this signature in database
GPG key ID: 1200FBE36C2ADE2E
1176 changed files with 111325 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# Isodate plugin
This plugin adds completion for the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601),
as well as some aliases for common Date commands.
To use it, add `isodate` to the plugins array in your zshrc file:
```zsh
plugins=(... isodate)
```
**Maintainer:** [@Frani](https://github.com/frani)
## Aliases
| Alias | Command | Description |
|---------------|--------------------------------------|----------------------------------------------------------------------------|
| isodate | `date +%Y-%m-%dT%H:%M:%S%z` | Display the current date with UTC offset and ISO 8601-2 extended format |
| isodate_utc | `date -u +%Y-%m-%dT%H:%M:%SZ` | Display the current date in UTC and ISO 8601-2 extended format |
| isodate_basic | `date -u +%Y%m%dT%H%M%SZ` | Display the current date in UTC and ISO 8601 basic format |
| unixstamp | `date +%s` | Display the current date as a Unix timestamp (seconds since the Unix epoch)|
| date_locale | `date +"%c"` | Display the current date using the default locale's format |

View file

@ -0,0 +1,7 @@
# work with date ISO 8601 easy
alias isodate="date +%Y-%m-%dT%H:%M:%S%z"
alias isodate_utc="date -u +%Y-%m-%dT%H:%M:%SZ"
alias isodate_basic="date -u +%Y%m%dT%H%M%SZ"
alias unixstamp="date +%s"
alias date_locale="date +"%c""