1
0
Fork 0

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

3
zsh/completion/_c Normal file
View File

@ -0,0 +1,3 @@
#compdef c
_files -W $PROJECTS -/

View File

@ -1,2 +1,3 @@
#compdef h
_files -W ~ -/

View File

@ -1,4 +1,5 @@
#compdef rake
if [ -f Rakefile ]; then
recent=`last_modified .rake_tasks~ Rakefile **/*.rake`
if [[ $recent != '.rake_tasks~' ]]; then

View File

@ -1,2 +0,0 @@
#compdef c
_files -W $PROJECTS -/

View File

@ -1 +0,0 @@
defaults write com.apple.Dock autohide-delay -float $1 && killall Dock

View File

@ -2,6 +2,7 @@
# Usage: smartextract <file>
# Description: extracts archived files / mounts disk images
# Note: .dmg/hdiutil is Mac OS X-specific.
extract () {
if [ -f $1 ]; then
case $1 in

View File

@ -1 +0,0 @@
for code in {000..255}; do print -P -- "$code: %F{$code}Lorem ipsum dolor sit amet%f"; done

View File

@ -1,7 +1,8 @@
# I'm just unable to remember this shit
# Taken from http://www.analysisandsolutions.com/code/chmod.htm
alias chmod-help='echo "\
chmod-help () {
echo "\
+---+-----+-------------------------+
| 0 | --- | no access |
| 1 | --x | only execute |
@ -12,4 +13,5 @@ alias chmod-help='echo "\
| 6 | rw- | read and write |
| 7 | rwx | read, write and execute |
+---+-----+-------------------------+\
"'
"
}

View File

@ -0,0 +1,3 @@
dock-delay() {
defaults write com.apple.Dock autohide-delay -float $1 && killall Dock
}

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
}