Skip to content

Commit

Permalink
Add useful commands for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-nath committed Jan 2, 2023
1 parent 047b66e commit 0d3cfeb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ It also includes a dev setup for `zsh` (aliases, functions, etc).
- [.aliases](./dev-setup/.aliases)
- [.functions](./dev-setup/.functions)
- [kubectl aliases](./dev-setup/kubectl-aliases.md)
- **[Useful Mac commands](./mac-cli.md)**

### Order of Operations

This is the order in which these files get read. Keep in mind that it reads first from the system-wide file (i.e. `/etc/zshenv`) then from the file in your home directory (`~/.zshenv`) as it goes through the following order:

`.zshenv``.zprofile``.zshrc``.zlogin``.zlogout`

Details - [What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?](https://unix.stackexchange.com/q/71253/107777)
Details - [What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?](https://unix.stackexchange.com/q/71253/107777)
15 changes: 15 additions & 0 deletions mac-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Useful commands for Mac

## Appending images in ImageMagick

For vertical stacking (top to bottom):

```
convert -append 1.jpg 2.jpg out.jpg
```

For horizontal stacking (left to right):

```
convert +append 1.jpg 2.jpg out.jpg
```

0 comments on commit 0d3cfeb

Please sign in to comment.