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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
restore_prompt_after_nix_shell() { | |
if [ "$PS1" != "$NIX_PROMPT" ]; then | |
PS1=$NIX_PROMPT | |
PROMPT_COMMAND="" | |
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
trap_stack_name() { | |
local sig=''${1//[^a-zA-Z0-9]/_} | |
echo "__trap_stack_$sig" | |
} | |
extract_trap() { | |
echo ''${@:3:$(($#-3))} | |
} | |
get_trap() { |
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
#!/bin/sh | |
DATADIR="$(pwd)/.mysql" | |
SOCKET="$DATADIR/mysql.sock" | |
echo $DATADIR | |
alias query="mysql --socket=$SOCKET --user=root --password=$MYSQL_ROOT_PASSWORD" | |
resetDB() { |
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 nocompatible | |
set number relativenumber | |
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab | |
set ai! | |
set foldmethod=syntax | |
setglobal foldlevelstart=99 | |
set updatetime=300 | |
set ignorecase | |
" coc |
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
unbind C-o | |
#Terminal colors | |
set -g default-terminal "screen-256color" | |
#Vi mode | |
set-window-option -g mode-keys vi | |
##Panel switching | |
#bind h select-pane -L |