Organizing zsh files

This commit is contained in:
Gregory Eremin
2013-04-25 20:23:31 +04:00
parent 3124a1c631
commit a6d50c675c
12 changed files with 16 additions and 6 deletions
+17
View File
@@ -0,0 +1,17 @@
# I'm just unable to remember this shit
# Taken from http://www.analysisandsolutions.com/code/chmod.htm
chmod-help () {
echo "\
+---+-----+-------------------------+
| 0 | --- | no access |
| 1 | --x | only execute |
| 2 | -w- | only write |
| 3 | -wx | write and execute |
| 4 | r-- | only read |
| 5 | r-x | read and execute |
| 6 | rw- | read and write |
| 7 | rwx | read, write and execute |
+---+-----+-------------------------+\
"
}
+3
View File
@@ -0,0 +1,3 @@
dock-delay() {
defaults write com.apple.Dock autohide-delay -float $1 && killall Dock
}
+3
View File
@@ -0,0 +1,3 @@
show-colors() {
for code in {000..255}; do print -P -- "$code: %F{$code}Lorem ipsum dolor sit amet%f"; done
}