forked from colonelpanic/dotfiles
		
	track modified and other tweaks.
This commit is contained in:
		| @@ -87,7 +87,6 @@ | ||||
|     "ngrep", | ||||
|     "nmap", | ||||
|     "node", | ||||
|     "openssh", | ||||
|     "openssl", | ||||
|     "ossp-uuid", | ||||
|     "pandoc", | ||||
| @@ -95,7 +94,6 @@ | ||||
|     "pcre", | ||||
|     "pixman", | ||||
|     "pkg-config", | ||||
|     "portmidi", | ||||
|     "pstree", | ||||
|     "pv", | ||||
|     "pypy", | ||||
|   | ||||
| @@ -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 | ||||
| } | ||||
|   | ||||
| @@ -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" | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user