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
function notify() { | |
osascript -e "display notification \"$1\" with title \"Alert\"" | |
} | |
function wait-and-notify() { | |
until eval "$1" | |
do | |
sleep 2 | |
done | |
MSG="${2:-$1 returned 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
# get 256 colors to work in tmux | |
set -g default-terminal "screen-256color" | |
# bind r to reload config file | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Smart pane switching with awareness of Vim splits. | |
# See: https://github.com/christoomey/vim-tmux-navigator | |
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ |
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
# get 256 colors to work in tmux | |
set -g default-terminal "screen-256color" | |
# bind r to reload config file | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# vim-like pane navigation | |
bind -T root C-h select-pane -L | |
bind -T root C-j select-pane -U |
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
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
info title | |
info underline | |
info "OS" distro | |
info "Host" model | |
info "Kernel" kernel | |
info "Uptime" uptime |
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
+ verbose=on | |
+ shift | |
+ [[ -n '' ]] | |
+ [[ on != on ]] | |
+ get_simple -vv | |
+ [[ -n -vv ]] | |
++ type -t get_-vv | |
+ [[ '' == \f\u\n\c\t\i\o\n ]] | |
+ shift | |
+ [[ -n '' ]] |
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
+ verbose=on | |
+ shift | |
+ [[ -n '' ]] | |
+ [[ on != on ]] | |
+ get_simple -vv | |
+ [[ -n -vv ]] | |
++ type -t get_-vv | |
+ [[ '' == \f\u\n\c\t\i\o\n ]] | |
+ shift | |
+ [[ -n '' ]] |
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
i=1; for FILENAME in *; do sudo mv -i "$FILENAME" "Seinfeld_s05e$i.mkv"; i=$((i+1)); done |
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
{ | |
"Ansi 7 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
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
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} ⚓️ %F{002}$(kubectl config current-context 2>/dev/null)/$(kubens -c 2>/dev/null)%{$reset_color%} $(git_prompt_info)' |
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 smoothscroll | |
map ; : | |
NewerOlder