forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: (54 commits) Support $PYTHONUSERBASE per PEP 370 Create a default tmux session only when none defined in tmux.conf Fix git-info added/deleted count formatting typo [Fix sorin-ionescu#543] Do not set tmux destroy-unattached Simplify multiplexer auto-start tests Inform the user to load ruby as late as possible when using RVM [Fix sorin-ionescu#551] Rename tmux auto-start session Fix a test operator bug introduced in e5a0e33 [Fix sorin-ionescu#541] Do not auto-load screen/tmux inside of Emacs/Vim Disable glob for bower Prefix rarely used osx functions Add functions to display and delete osx download history Update osx alias descriptions Make osx functions autoloadable Cast AppleScript paths to text Add capability to browse man pages in Dash.app Remove Bwana.app support Add double slash after Bwana.app's man protocol [Fix sorin-ionescu#361] Load chruby when found [Fix sorin-ionescu#535] Set Pacman frontend to 'pacman' when none set ... Conflicts: runcoms/zshenv
- Loading branch information
Showing
37 changed files
with
429 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
modules/osx/functions/_manb_manp → modules/osx/functions/_manb_mand_manp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#compdef manb manp | ||
#compdef mand manp | ||
#autoload | ||
|
||
# | ||
# Completes manb and manp. | ||
# Completes mand and manp. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Opens man pages in Dash.app. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
function mand { | ||
if (( $# > 0 )); then | ||
open "dash://manpages:$1" 2>/dev/null | ||
if (( $? != 0 )); then | ||
print "$0: Dash is not installed" >&2 | ||
break | ||
fi | ||
else | ||
print 'What manual page do you want?' >&2 | ||
fi | ||
} | ||
|
||
mand "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# Displays the Mac OS X download history. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
local db | ||
for db in ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*; do | ||
if grep -q 'LSQuarantineEvent' < <(sqlite3 "$db" .tables); then | ||
sqlite3 "$db" 'SELECT LSQuarantineDataURLString FROM LSQuarantineEvent' | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Deletes .DS_Store and __MACOSX directories. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
find "${@:-$PWD}" \( \ | ||
-type f -name '.DS_Store' -o \ | ||
-type d -name '__MACOSX' \ | ||
\) -print0 | xargs -0 rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# Deletes the Mac OS X download history. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
local db | ||
for db in ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*; do | ||
if grep -q 'LSQuarantineEvent' < <(sqlite3 "$db" .tables); then | ||
sqlite3 "$db" 'DELETE FROM LSQuarantineEvent; VACUUM' | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,11 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
osascript 2>/dev/null <<EOF | ||
set output to "" | ||
osascript 2>&1 <<EOF | ||
tell application "Finder" to set the_selection to selection | ||
set item_count to count the_selection | ||
repeat with item_index from 1 to count the_selection | ||
if item_index is less than item_count then set the_delimiter to "\n" | ||
if item_index is item_count then set the_delimiter to "" | ||
set output to output & ((item item_index of the_selection as alias)'s POSIX path) & the_delimiter | ||
end repeat | ||
if the_selection is not {} | ||
repeat with an_item in the_selection | ||
log POSIX path of (an_item as text) | ||
end repeat | ||
end if | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# Previews files in Quick Look. | ||
# | ||
# Authors: | ||
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
if (( $# > 0 )); then | ||
qlmanage -p "$@" &> /dev/null | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
local tmp="$TMPDIR/pacman-disowned-$UID-$$" | ||
local tmp="${TMPDIR:-/tmp}/pacman-disowned-$UID-$$" | ||
local db="$tmp/db" | ||
local fs="$tmp/fs" | ||
|
||
|
Oops, something went wrong.