04-03-2022

This commit is contained in:
2022-03-04 17:56:50 +01:00
parent e6fc2251ec
commit 5b45dc0863
70 changed files with 3189 additions and 673 deletions

View File

@@ -2,7 +2,7 @@
##### Ouvrir une page man dans un fenêtre spécifique:
#### Ouvrir une page man dans un fenêtre spécifique:
```bash
$ open x-man-page://ls
@@ -11,7 +11,9 @@ $ open x-man-page://ls
function xmanpage() { open x-man-page://$@ ; }
```
##### Ouvrir une page man dans Aperçu:
#### Ouvrir une page man dans Aperçu:
```bash
$ man -t ls | open -f -a "Preview"
@@ -20,7 +22,9 @@ $ man -t ls | open -f -a "Preview"
function preman() { man -t "$@" | open -f -a "Preview" ;}
```
##### Obtenir le chemin de la fenêtre courante du Finder:
#### Obtenir le chemin de la fenêtre courante du Finder:
```bash
$ osascript -e 'tell app "Finder" to get posix path of ((target of window 1) as alias)'
@@ -49,6 +53,27 @@ alias cdf='pwdf; cd "$(pwdf)"'
#### Erreur: 'zsh: operation not permitted'
```bash
zsh: operation not permitted: /Users/bruno/.local/bin/convert-videos-for-plex.sh
```
Le script est peut-être en quarantaine:
```bash
$ xattr -l /Users/bruno/.local/bin/convert-videos-for-plex.sh
com.apple.quarantine
```
Pour supprimer la quarantaine:
```bash
$ xattr -d com.apple.quarantine /Users/bruno/.local/bin/convert-videos-for-plex.sh
```
#### Raccourcis:
Aller en début de ligne: `CTRL+A`