MaJ du 04-02-2021
This commit is contained in:
@@ -375,3 +375,28 @@ eloston-chromium
|
||||
|
||||
https://github.com/toland/qlmarkdown/issues/89
|
||||
|
||||
|
||||
|
||||
### Query:
|
||||
|
||||
Liste des casks avec 'auto_updates' à true:
|
||||
|
||||
```bash
|
||||
$ brew info --installed --cask --json=v2 | jq -r '{casks} | .[] | .[] | select(.auto_updates == true) | (.name, .token, .version, .auto_updates)'
|
||||
```
|
||||
|
||||
Info sur le cask 'onyx':
|
||||
|
||||
```bash
|
||||
$ brew info --installed --cask --json=v2 | jq -r '{casks} | .[] | .[] | select(.token == "onyx") | (.name, .token, .version, .auto_updates)'
|
||||
|
||||
$ a="onyx"
|
||||
$ brew info --installed --cask --json=v2 | jq -r '{casks} | .[] | .[] | select(.token == "'${a}'") | (.name, .token, .version, .auto_updates)'
|
||||
```
|
||||
|
||||
Info (version) sur le paquet 'fzf':
|
||||
|
||||
```bash
|
||||
$ brew info --installed --json=v2 | jq -r '{formulae} | .[] | .[] | select(.name == "fzf") | (.installed)' | jq -r '.[].version'
|
||||
```
|
||||
|
||||
|
||||
@@ -827,6 +827,18 @@ ls: illegal option -- -
|
||||
ls (GNU coreutils) 8.31
|
||||
```
|
||||
|
||||
Utiliser date ou gdate:
|
||||
|
||||
```bash
|
||||
gnudate() {
|
||||
if hash gdate 2>/dev/null; then
|
||||
gdate "$@"
|
||||
else
|
||||
date "$@"
|
||||
fi
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### findutils (GNU Tools)
|
||||
|
||||
Reference in New Issue
Block a user