From f26545a8cb75a4aeb0773ac309d8145aeb087d1d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 29 Jul 2013 14:08:04 +0100 Subject: zshrc: add X11 window role to wprop alias --- zsh/zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 938dcbd..c017029 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -275,7 +275,8 @@ alias E="SUDO_EDITOR=\emacsclient -c -a emacs\" sudoedit" alias aticonfig="DISPLAY=:0 \aticonfig" alias wprop='xprop |awk '\'' /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print} - /^WM_NAME/{sub(/.* =/, "title:"); print}'\''' + /^WM_NAME/{sub(/.* =/, "title:"); print} + /^WM_WINDOW_ROLE/{sub(/.* =/, "role:"); print}'\''' alias -g ...='../..' -- cgit 1.4.1 From 1ba96a0584267853ff15e255bfae7afb39bceb7c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 29 Jul 2013 15:42:44 +0100 Subject: zsh: check for gem directory and add bin folder to path if found --- zsh/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index c017029..3bf6e3b 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -10,6 +10,13 @@ then $defpath ~/bin ) + if [[ -d ~/.gem/ruby ]] + then + path=( + $path + ~/.gem/ruby/*/bin + ) + fi fi if [[ ! -d ~/.zsh/cache ]] -- cgit 1.4.1