Skip to content

Instantly share code, notes, and snippets.

@dendrochronology
dendrochronology / code-shell.sh
Created August 20, 2018 20:02
VS Code shell script to launch friendly-but-uniquely named tmux sessions for each project.
#!/usr/bin/env bash
# Set terminal.integrated.shell.osx in User Settings to wherever you save this
HASH="`pwd | md5`"
SESSION="${PWD##*/} ${HASH: -6:6}"
SESSION_CLEAN="`echo $SESSION | sed 's/\.//g'`"
tmux attach-session -d -t "$SESSION_CLEAN" || tmux new-session -s "$SESSION_CLEAN"
@dendrochronology
dendrochronology / styles.less
Last active December 17, 2022 21:02
Atom.io styles for rainbow indent guides. Yay rainbows!
/*
* Atom Stylesheet
*
* .generate-indents(): makes pretty indent guides.
* Enable 'Settings' -> 'Show Indent Guide' and taste the rainbow!
*
*/
// Default and base colors for indent guides
@indentColor: hsla(345, 100%, 55%, .3); // Manipulate this to make pretty