aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-10-31 16:17:44 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-10-31 16:20:42 -0400
commitb8d5cf5b393c6373b3dbfa5b1baf3e527de3e05b (patch)
treeae56bc2aad7869d03535d8a7a478279bc2fb52f4
parentf6038cf3ee7262f93ef0df7b001a3ab47886b697 (diff)
downloaddotfiles-b8d5cf5b393c6373b3dbfa5b1baf3e527de3e05b.tar.gz
dotfiles-b8d5cf5b393c6373b3dbfa5b1baf3e527de3e05b.tar.xz
Fix up snipmenu and add a few more snippets.
-rwxr-xr-xbin/snipmenu2
-rw-r--r--snips/bash_history7
l---------snips/keys1
l---------snips/mpdconf1
l---------snips/rtorrent.rc1
l---------snips/tmux.conf1
6 files changed, 12 insertions, 1 deletions
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