Skip to content

Commit 6ac2266

Browse files
committed
Added command shortcuts to .zshrc
1 parent 9441c80 commit 6ac2266

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/dev-machine-setup-macos.md

+19
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ impressive set of features. Download and install iTerm2 from
1111
```bash
1212
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1313
brew install git wget
14+
brew install tree # optional package for directory listing
1415
```
1516

1617
### Install Z Shell
@@ -97,6 +98,24 @@ export NVM_DIR="$HOME/.nvm"
9798
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
9899
```
99100

101+
**Optional**
102+
Add the following command shortcuts at the end of .zshrc
103+
104+
```bash
105+
# ----- Command Shortcuts -----
106+
# preferred 'ls' implementation
107+
alias ll='ls -FGlAhp'
108+
109+
# recursive directory listing
110+
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
111+
112+
# better directory listing
113+
alias ltree='tree --dirsfirst -F -a'
114+
115+
# preferred 'ps' implementation
116+
alias pc='ps -e -o user,pid,comm'
117+
```
118+
100119
### Try building a React app
101120

102121
Clone the

0 commit comments

Comments
 (0)