Merge branch 'master' of github.com:IvanMalison/dotfiles
This commit is contained in:
commit
c88977fbe2
@ -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)
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user