Skip to content

Instantly share code, notes, and snippets.

export HISTSIZE=""
if [ "$PS1" ]; then
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
fi
#!/usr/bin/env bash
SINK_SPEAKERS="alsa_output.pci-0000_00_1b.0.analog-stereo"
SINK_HEADPHONES="alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo"
pacmd stat | grep "Default sink name" | grep --quiet "$SINK_SPEAKERS"
if [ $? == 0 ]
then
pacmd set-default-sink "$SINK_HEADPHONES" \
@nclundsten
nclundsten / 0_reuse_code.js
Created January 16, 2016 16:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console