Organizing zsh files
This commit is contained in:
parent
3124a1c631
commit
a6d50c675c
|
@ -0,0 +1,3 @@
|
|||
#compdef c
|
||||
|
||||
_files -W $PROJECTS -/
|
|
@ -1,2 +1,3 @@
|
|||
#compdef h
|
||||
|
||||
_files -W ~ -/
|
|
@ -1,4 +1,5 @@
|
|||
#compdef rake
|
||||
|
||||
if [ -f Rakefile ]; then
|
||||
recent=`last_modified .rake_tasks~ Rakefile **/*.rake`
|
||||
if [[ $recent != '.rake_tasks~' ]]; then
|
|
@ -1,2 +0,0 @@
|
|||
#compdef c
|
||||
_files -W $PROJECTS -/
|
|
@ -1 +0,0 @@
|
|||
defaults write com.apple.Dock autohide-delay -float $1 && killall Dock
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
for code in {000..255}; do print -P -- "$code: %F{$code}Lorem ipsum dolor sit amet%f"; done
|
|
@ -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 |
|
||||
+---+-----+-------------------------+\
|
||||
"'
|
||||
"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
dock-delay() {
|
||||
defaults write com.apple.Dock autohide-delay -float $1 && killall Dock
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
show-colors() {
|
||||
for code in {000..255}; do print -P -- "$code: %F{$code}Lorem ipsum dolor sit amet%f"; done
|
||||
}
|
Loading…
Reference in New Issue