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
func man () | |
set LESS_TERMCAP_mb \e"[1;31m" | |
set LESS_TERMCAP_md \e"[1;31m" | |
set LESS_TERMCAP_me \e"[0m" | |
set LESS_TERMCAP_se \e"[0m" | |
set LESS_TERMCAP_so \e"[1;44;33m" | |
set LESS_TERMCAP_ue \e"[0m" | |
set LESS_TERMCAP_us \e"[1;32m" | |
command man argv | |
end |
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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
use O : script "omnifocus" | |
use OmniFocus : application "OmniFocus" | |
tell OmniFocus | |
tell default document | |
set reviewTasks to every flattened task whose name starts with "Review" | |
setColon(reviewTasks) of O | |
end tell |
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
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
tell application "OmniFocus" | |
set theWindow to front document window of front document | |
set theTasks to selected trees of content of theWindow | |
set theValues to {} | |
repeat with n in theTasks | |
set end of theValues to value of n |
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
set -x COMMENT 6272a4 | |
set -x CYAN 8be9fd | |
set -x GREEN 50fa7b | |
set -x ORANGE ffb86c | |
set -x PINK ff79c6 | |
set -x PURPLE bd93f9 | |
set -x RED ff5555 | |
set -x YELLOW f1fa8c | |
set -U fish_color_autosuggestion $COMMENT |
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 `mcd` function will create a new directory and then `cd` to it. | |
# If files are provided after the new directory, they will be `mv`ed | |
# into the new directory as well. | |
function mcd | |
mkdir -p $argv[1] | |
if test (count $argv) -gt 1 | |
mv $argv[2..-1] $argv[1] | |
end | |
and cd $argv[1] |
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
function of -d "Parse transport text" | |
if not test (count $argv) -gt 0 | |
open -a OmniFocus | |
else | |
osascript -e "tell application \"OmniFocus\" to parse tasks into default document with transport text \"$argv\"" > /dev/null | |
tint: green "Task added to OmniFocus inbox." | |
return 0 | |
end | |
end |
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
if (Application('Safari Technology Preview').running()) { | |
safari = Application('Safari Technology Preview') | |
} else if (Application('Safari').running()) { | |
safari = Application('Safari') | |
} | |
_tab = safari.windows[0].currentTab() | |
if (_tab.url().match(/http.?:\/\/www/)) { | |
_url = _tab.url().split("www.") |
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
require "option_parser" | |
capitalize = false | |
destination = "World" | |
OptionParser.parse! do |parser| | |
parser.banner = "Usage: salute [arguments]" | |
parser.on("-c", "--capitalize", "Capitalizes the sallute") { capitalize = true } | |
parser.on("-t NAME", "--to=NAME", "Specifies the name to salute") { |name| destination = name } | |
parser.on("-h", "--help", "Show this help") { puts parser } |
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
vim "%Y%m%d_%H%M%S_%fillpopup:name=Tokens:default=R:r:I:i:C:c%%fillpopup:name=Personal/Work:1:2%.%fillpopup:name=Area of Responsibility:default=1:2:3:4:5%_%filltext:name=Keys%.%fillpopup:name=Extension:txt:otl:default=md:%"%key:return% |
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
"%Y%m%d_%H%M%S_%fillpopup:name=Tokens:default=R:r:I:i:C:c%%fillpopup:name=Personal/Work:1:2%.%fillpopup:name=Area of Responsibility:default=1:2:3:4:5%_%filltext:name=Keys%.%fillpopup:name=Extension:txt:md:default=pdf:%" |