start new:
tmux
start new with session name:
tmux new -s myname
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# forked by Gianluca Guarini | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep -E --quiet "$1" && eval "$2" | |
} |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
http://code.hootsuite.com/css-at-hootsuite/ | |
http://mikeaparicio.com/2014/08/10/css-at-groupon/ | |
http://blog.trello.com/refining-the-way-we-structure-our-css-at-trello/ | |
http://markdotto.com/2014/07/23/githubs-css/ | |
http://codepen.io/chriscoyier/blog/codepens-css | |
http://ianfeather.co.uk/css-at-lonely-planet/ | |
https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06 | |
http://blog.brianlovin.com/buffers-css/ | |
http://dev.ghost.org/css-at-ghost/ |
=justify | |
text-align: justify | |
line-height: 0 | |
font-size: 0 | |
text-justify: newspaper | |
zoom: 1 | |
text-align-last: justify | |
&:after | |
content: "" | |
display: inline-block |
{% macro input(name, value, type, attributes) %} | |
<input name="{{ name }}" type="{{ type }}" value="{{ value }}"{% for attr, value in attributes %} {{ attr }}="{{ value }}"{% endfor %}{% if not attributes.id is defined %} id="{{ name }}"{% endif %}/> | |
{% endmacro %} | |
{% macro text(name, value, attributes) %} | |
{% from _self import input %} | |
{{ input(name, value, "text", attributes) }} | |
{% endmacro %} | |
{% macro password(name, value, attributes) %} |
# Add this to the bottom of your config.fish file | |
# Set SSH to use Gnome keyring | |
set -gx SSH_AUTH_SOCK (gnome-keyring-daemon --start | grep "^SSH_AUTH_SOCK" | awk -F "=" '{print $2}') |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
#!/bin/bash | |
# rlink is useful when you are working in packages used in other packages/apps. Normally you | |
# would use yarn link but it can cause problems since node_modules are resolved inside the | |
# linked directory instead of the host directory. Here, the "link" is done the hard way with | |
# nodemon and rsync, ensuring that the node_modules/<package> corresponds to the linked package. | |
# Location of the linked packages is found by using the directory where yarn stores its symbolic | |
# links. | |
# | |
# ## Installation |
This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.