瀏覽代碼

alias: add list all aliases (#3019)

Ivan Aracki 5 年之前
父節點
當前提交
5e876b3a9d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      pages/common/alias.md

+ 4 - 4
pages/common/alias.md

@@ -3,6 +3,10 @@
 > Creates aliases -- words that are replaced by a command string.
 > Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`.
 
+- List all aliases:
+
+`alias`
+
 - Create a generic alias:
 
 `alias {{word}}="{{command}}"`
@@ -15,10 +19,6 @@
 
 `unalias {{word}}`
 
-- List all aliased words:
-
-`alias -p`
-
 - Turn `rm` into an interactive command:
 
 `alias {{rm}}="{{rm -i}}"`