1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 18:31:41 +00:00

Added or edited file headers.

This commit is contained in:
Sorin Ionescu
2012-01-31 23:37:51 -05:00
parent e1a71a84b1
commit b96bbca51c
71 changed files with 527 additions and 108 deletions

View File

@ -1,4 +1,10 @@
# Open man pages in Bwana.
#
# Opens man pages in Bwana.app.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
function manb() {
local page
if (( $# > 0 )); then

View File

@ -1,4 +1,10 @@
# Open man pages in Preview.
#
# Opens man pages in Preview.app.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
function manp() {
local page
if (( $# > 0 )); then

View File

@ -1,3 +1,10 @@
#
# Displays the current Finder.app directory.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
osascript 2>/dev/null <<EOF
tell application "Finder"
return POSIX path of (target of window 1 as alias)

View File

@ -1,3 +1,10 @@
#
# Displays the current Finder.app selection.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
osascript 2>/dev/null <<EOF
set output to ""
tell application "Finder" to set the_selection to selection

View File

@ -1,3 +1,10 @@
#
# Opens a new Terminal.app/iTerm.app tab in the current directory.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
local command="cd \\\"$PWD\\\""
(( $# > 0 )) && command="${command}; $*"

View File

@ -1,3 +1,10 @@
#
# Moves directories and files to Trash.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
print -N "${@:a}" | xargs -0 osascript -e '
on run theFilePaths
tell application "Finder"