This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g repeat-time 400 | |
set -g default-terminal screen-256color | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
bind r source-file ~/.tmux.conf\; display "source-file ~/.tmux.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd fzfdirs ${{ | |
FZF_DEFAULT_OPTS="--preview 'bat --style=numbers --color=always {}' --height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore ${FZF_DEFAULT_OPTS-} ${FZF_CTRL_T_OPTS-}" | |
D=`find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune -o -type d -print -o -type l -print 2> /dev/null | cut -b3- | fzf -m` | |
if [[ $D == '' ]]; then | |
lf -remote "send $id echo fzf aborted." | |
else | |
lf -remote "send $id cd $D" | |
fi | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import sys | |
data = '' | |
if len(sys.argv) == 2: | |
data = sys.argv[1] | |
else: | |
print "No input specified\n" | |
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install fortune | |
# | |
# pacman -S fortune-mod | |
# apt-get install fortune | |
# | |
# place in _plugins/ | |
# | |
# to use: | |
# {% fortune [args] %} | |
# |