Skip to content

Instantly share code, notes, and snippets.

View pyriand3r's full-sized avatar

pyriand3r

  • Foo Bar Inc.
  • localhost
View GitHub Profile
@pyriand3r
pyriand3r / snippy.sh
Last active August 22, 2017 08:40 — forked from coderofsalvation/snippy.sh
modified version of snippy which features easier installation, follows symlinks, bashdown templates and automatic detection of cli vs window. This version also combines snippy.sh and snippy_1line.sh, making it possible to use both with just one script. Default the file ~/.snippy/oneliner is used, if you start snippy with the paramter `multi` the…
#!/usr/bin/env bash
# originally written by "mhwombat": https://bbs.archlinux.org/viewtopic.php?id=71938&p=2
# Based on "snippy" by "sessy"
# (https://bbs.archlinux.org/viewtopic.php?id=71938)
# and the modified version by "coderofsalvation"
# (https://gist.github.com/coderofsalvation/46549e3788ade2f3a938)
#
# You will also need "dmenu", "xsel" and "xdotool". Get them from your linux
# distro in the usual way.