Skip to content

Commit 2246a77

Browse files
committed
fix post
1 parent 5846d7b commit 2246a77

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

‎_posts/2017-02-22-Mac-文件的隐藏与显示.md‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,36 @@ tags:
1313

1414
> 让 Finder 显示隐藏文件和文件夹
1515
16+
# 基本
17+
1618
#### 显示
1719

1820
$ defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
1921

2022
#### 隐藏
2123

22-
$ defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
24+
$ defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
25+
26+
# 进阶
27+
28+
创建终端快捷命令
29+
30+
在 **zsh** shell 下,创建快捷命令
31+
32+
#### 创建显示命令 fd (fileDisplay)
33+
$ echo "alias fd='defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder'">> ~/.zshrc && source ~/.zshrc
34+
35+
#### 创建隐藏命令 fh(fileHide)
36+
37+
$ echo "alias fd='defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder'">> ~/.zshrc && source ~/.zshrc
38+
39+
使用方法
40+
41+
显示隐藏文件
42+
43+
$ fd
44+
隐藏文件
45+
46+
$ fh
47+
48+

0 commit comments

Comments
 (0)