Merge branch 'master' of github.com:IvanMalison/dotfiles

This commit is contained in:
Ivan Malison 2017-03-26 15:59:09 -07:00
commit c88977fbe2
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 12 additions and 1 deletions

View File

@ -3868,6 +3868,7 @@ in term-mode. This makes term-mode 1000% more useful
(if string string (current-kill 0)))) (if string string (current-kill 0))))
(require 'helm) (require 'helm)
(require 'helm-ring)
(defvar helm-kill-ring-for-term-actions (defvar helm-kill-ring-for-term-actions
'(("Yank" . imalison:term-paste) '(("Yank" . imalison:term-paste)

View File

@ -15,8 +15,14 @@ get_all_aliases () {
alias | cut -d = -f 1 alias | cut -d = -f 1
} }
get_all_history () {
cat ~/.zsh_history | cut -d ';' -f 2- | awk '!a[$0]++'
}
selected=$({ get_all_executables; get_all_aliases; get_all_functions; get_all_history; } |
rofi -dmenu -i -kb-custom-1 "Alt+c" -kb-custom-2 "Alt+t")
selected=$({ get_all_executables; get_all_aliases; get_all_functions; } | rofi -dmenu -i -kb-custom-1 "Alt+c")
rofi_exit="$?" rofi_exit="$?"
args="" args=""
case "$rofi_exit" in case "$rofi_exit" in
@ -25,5 +31,9 @@ case "$rofi_exit" in
;; ;;
10) 10)
args=$(echo "" | rofi -dmenu) args=$(echo "" | rofi -dmenu)
;;
11)
urxvt --hold -e "$selected"
;;
esac esac
eval "$selected $args" eval "$selected $args"