Skip to content

Instantly share code, notes, and snippets.

View nemes1s's full-sized avatar

Dmytro Zadorozhnyi nemes1s

  • Hackerone
  • Amsterdam/Netherlands
View GitHub Profile
# Set 'v' for vertical and 'h' for horizontal split
bind v split-window -h -c '#{pane_current_path}'
bind b split-window -v -c '#{pane_current_path}'
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
set -g status-position bottom
set -g status-bg colour237
set -g status-fg colour137
set -g status-style dim
set -g status-left '#[fg=colour197]#(~/bin/internet_info.sh) #{tasks_status}'
set -g status-right '#[fg=colour81]♪ #(~/bin/now_playing.sh) #(~/bin/battery.sh) #[fg=colour255,bg=colour241,bold] %a %m-%d #[fg=colour255,bg=colour241,bold] %H:%M:%S #[fg=colour165]#[bg=default] #H '
set -g status-right-length 100
set -g status-left-length 70
# Set 'v' for vertical and 'h' for horizontal split
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export TERM="xterm-256color"
# Path to your oh-my-zsh installation.
export ZSH="/Users/dmytrozadorozhnyi/.oh-my-zsh"
plugins=(sudo git history taskwarrior tmux tmuxinator zsh-autosuggestions iterm2 man osx python)
plugins=( [plugins...] zsh-syntax-highlighting)
<snippet>
<content><![CDATA[
var ${1:name} = function(${2:param}) {
//${3:body}
};
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>vfn</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<snippet>
<content><![CDATA[
var ${1:name} = (function($1, \$, document, window) {
"use strict";
${2://body}
return $1;
})($1 || {}, jQuery, document, window);