1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-28 18:17:11 -07:00

merge arith and hex headers

This commit is contained in:
Connor Olding 2016-06-27 06:04:09 -07:00
parent 1d80eaadf4
commit eac5268c29

View File

@ -17,13 +17,15 @@ most (but not all) stuff that's written for bash will work in zsh too.
if it just says `(sh)` then it'll probably work on anything, if it just says `(sh)` then it'll probably work on anything,
but probably depends on GNU awk. but probably depends on GNU awk.
### [arith](/sh/arith) ### [arith](/sh/arith) + [hex](/sh/hex)
(zsh) does arithmetic using shell expansion. (zsh) does arithmetic using the shell.
``` ```
$ arith 10**(6/20.) $ arith 10**(6/20.)
1.9952623149688795 1.9952623149688795
$ hex 0x221EA8-0x212020
0000FE88
``` ```
### [aur](/sh/aur) ### [aur](/sh/aur)
@ -99,15 +101,6 @@ $ e /etc/sudoers
(zsh) asks you to update most of the git repos it finds. i don't really use this. (zsh) asks you to update most of the git repos it finds. i don't really use this.
### [hex](/sh/hex)
(zsh) same as `arith` but outputs as `%08X`.
```
$ hex 0x221EA8-0x212020
0000FE88
```
### [is\_empty](/sh/is_empty) ### [is\_empty](/sh/is_empty)
(bash) returns 0 if the directory given by $1 is empty. (bash) returns 0 if the directory given by $1 is empty.