From b8d5cf5b393c6373b3dbfa5b1baf3e527de3e05b Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 31 Oct 2020 16:17:44 -0400 Subject: Fix up snipmenu and add a few more snippets. --- bin/snipmenu | 2 +- snips/bash_history | 7 +++++++ snips/keys | 1 + snips/mpdconf | 1 + snips/rtorrent.rc | 1 + snips/tmux.conf | 1 + 6 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 snips/bash_history create mode 120000 snips/keys create mode 120000 snips/mpdconf create mode 120000 snips/rtorrent.rc create mode 120000 snips/tmux.conf diff --git a/bin/snipmenu b/bin/snipmenu index d525715..c77e6ca 100755 --- a/bin/snipmenu +++ b/bin/snipmenu @@ -2,6 +2,6 @@ set -e conf="__REPLACE__" cd "$conf" -_file=$(find . \! -type d | dmenu "$@") +_file=$(find -L . \! -type d | dmenu "$@") xdotool type --delay 1ms --clearmodifiers --file "$conf/$_file" diff --git a/snips/bash_history b/snips/bash_history new file mode 100644 index 0000000..a2dfbe7 --- /dev/null +++ b/snips/bash_history @@ -0,0 +1,7 @@ +if [ -n "$BASH" ] ; then + HISTFILE="$HOME/.bash_history" + HISTSIZE=10000 + HISTFILESIZE=10000 + shopt -s histappend + export PROMPT_COMMAND="set_my_title;history -a; history -c; history -r" +fi diff --git a/snips/keys b/snips/keys new file mode 120000 index 0000000..b660cfb --- /dev/null +++ b/snips/keys @@ -0,0 +1 @@ +../keys \ No newline at end of file diff --git a/snips/mpdconf b/snips/mpdconf new file mode 120000 index 0000000..f3308d3 --- /dev/null +++ b/snips/mpdconf @@ -0,0 +1 @@ +../mpdconf \ No newline at end of file diff --git a/snips/rtorrent.rc b/snips/rtorrent.rc new file mode 120000 index 0000000..35dd860 --- /dev/null +++ b/snips/rtorrent.rc @@ -0,0 +1 @@ +../rtorrent.rc \ No newline at end of file diff --git a/snips/tmux.conf b/snips/tmux.conf new file mode 120000 index 0000000..ae52063 --- /dev/null +++ b/snips/tmux.conf @@ -0,0 +1 @@ +../tmux/basic.conf \ No newline at end of file -- cgit v1.2.3