Преглед изворни кода

pacman-f: add alias page; pacman-files: update page (#14858)

Angad Singh Grover пре 3 месеци
родитељ
комит
a75d875fa6
3 измењених фајлова са 18 додато и 11 уклоњено
  1. 7 0
      pages/linux/pacman-f.md
  2. 10 10
      pages/linux/pacman-files.md
  3. 1 1
      scripts/wrong-filename.sh

+ 7 - 0
pages/linux/pacman-f.md

@@ -0,0 +1,7 @@
+# pacman -F
+
+> This command is an alias of `pacman --files`.
+
+- View documentation for the original command:
+
+`tldr pacman files`

+ 10 - 10
pages/linux/pacman-files.md

@@ -6,24 +6,24 @@
 
 - Update the package database:
 
-`sudo pacman --files --refresh`
+`sudo pacman -Fy`
 
-- Find the package that owns a specific file:
+- Find the package that owns a specific [F]ile:
 
-`pacman --files {{filename}}`
+`pacman -F {{filename}}`
 
-- Find the package that owns a specific file, using a regular expression:
+- Find the package that owns a specific [F]ile, using a regular e[x]pression:
 
-`pacman --files --regex '{{regular_expression}}'`
+`pacman -Fx '{{regular_expression}}'`
 
 - List only the package names:
 
-`pacman --files --quiet {{filename}}`
+`pacman -Fq {{filename}}`
 
-- List the files owned by a specific package:
+- [l]ist the [F]iles owned by a specific package:
 
-`pacman --files --list {{package}}`
+`pacman -Fl {{package}}`
 
-- Display help:
+- Display [h]elp:
 
-`pacman --files --help`
+`pacman -Fh`

+ 1 - 1
scripts/wrong-filename.sh

@@ -10,7 +10,7 @@ OUTPUT_FILE="inconsistent-filenames.txt"
 rm -f "$OUTPUT_FILE"
 touch "$OUTPUT_FILE"
 
-IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman  r" "pacman  s")
+IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman  f" "pacman  r" "pacman  s")
 
 set -e