track modified and other tweaks.

This commit is contained in:
Ivan Malison 2014-11-10 01:49:51 -08:00
parent bc4ce50bd1
commit 664a3023ac
3 changed files with 11 additions and 3 deletions

View File

@ -87,7 +87,6 @@
"ngrep",
"nmap",
"node",
"openssh",
"openssl",
"ossp-uuid",
"pandoc",
@ -95,7 +94,6 @@
"pcre",
"pixman",
"pkg-config",
"portmidi",
"pstree",
"pv",
"pypy",

View File

@ -250,3 +250,13 @@ EOF
function dirty_talk() {
while true; do talk_dirty_to_me | tee >(cat) | say; done
}
function track_modified {
local timestamp_file="/tmp/__track_modified_timestamp__"
touch $timestamp_file
stat $timestamp_file
echo "Press any key to execute find command"
read -r key
echo "Finding..."
find $1 -newer $timestamp_file
}

View File

@ -61,7 +61,7 @@ function ss() {
}
function set_modifier_keys_for_vendor_product_id() {
local mapping="<dict><key>HIDKeyboardModifierMappingDst</key><integer>$3</integer><key>HIDKeyboardModifierMappingSrc</key><integer>$2</integer></dict>"
local mapping="<dict><key>HIDKeyboardModifierMappingSrc</key><integer>$2</integer><key>HIDKeyboardModifierMappingDst</key><integer>$3</integer></dict>"
echo $mapping
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 -array-add "$mapping"
}