From 663e1caa9f813088b10fb08637cb1894ddb5f7ac Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 23 Aug 2014 17:06:30 -0700 Subject: [PATCH] Make startss a function. --- dotfiles/lib/shellrc/aliases.sh | 1 - dotfiles/lib/shellrc/functions.sh | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/lib/shellrc/aliases.sh b/dotfiles/lib/shellrc/aliases.sh index 9c3a0e9a..c241e90e 100644 --- a/dotfiles/lib/shellrc/aliases.sh +++ b/dotfiles/lib/shellrc/aliases.sh @@ -1,4 +1,3 @@ -alias startss='open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app' alias emacs="emacsclient -t" alias xemacs="\emacs --daemon > /dev/null 2&> /dev/null; emacsclient -c &" alias tmux="tmux -2" diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 49b8710f..6214fe94 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -225,3 +225,7 @@ function set_modifier_keys_on_all_keyboards() { function get_keyboard_vendor_id_product_id_pairs() { ioreg -n IOHIDKeyboard -r | grep -e 'class IOHIDKeyboard' -e VendorID\" -e Product | gawk 'BEGIN { RS = "class IOHIDKeyboard" } match($0, /VendorID. = ([0-9]*)/, arr) { printf arr[1]} match($0, /ProductID. = ([0-9]*)/, arr) { printf " %s\n", arr[1]} ' } + +function startss() { + open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app +}