From 664a3023ac16b089457a3cf55727c2cbf21d1094 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 10 Nov 2014 01:49:51 -0800 Subject: [PATCH] track modified and other tweaks. --- dotfiles/cider/bootstrap.json | 2 -- dotfiles/lib/shellrc/functions.sh | 10 ++++++++++ dotfiles/lib/shellrc/osx.sh | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dotfiles/cider/bootstrap.json b/dotfiles/cider/bootstrap.json index c650e338..c6d86bd8 100644 --- a/dotfiles/cider/bootstrap.json +++ b/dotfiles/cider/bootstrap.json @@ -87,7 +87,6 @@ "ngrep", "nmap", "node", - "openssh", "openssl", "ossp-uuid", "pandoc", @@ -95,7 +94,6 @@ "pcre", "pixman", "pkg-config", - "portmidi", "pstree", "pv", "pypy", diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 1d355706..e67bdd47 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -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 +} diff --git a/dotfiles/lib/shellrc/osx.sh b/dotfiles/lib/shellrc/osx.sh index 555cc61b..c024381e 100644 --- a/dotfiles/lib/shellrc/osx.sh +++ b/dotfiles/lib/shellrc/osx.sh @@ -61,7 +61,7 @@ function ss() { } function set_modifier_keys_for_vendor_product_id() { - local mapping="HIDKeyboardModifierMappingDst$3HIDKeyboardModifierMappingSrc$2" + local mapping="HIDKeyboardModifierMappingSrc$2HIDKeyboardModifierMappingDst$3" echo $mapping defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 -array-add "$mapping" }