This file contains hidden or 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
| -- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used) | |
| vim.g.mapleader = ' ' | |
| vim.g.maplocalleader = ' ' | |
| -- Set to true if you have a Nerd Font installed and selected in the terminal | |
| vim.g.have_nerd_font = true | |
| -- [[ Setting options ]] | |
| vim.opt.number = true |
This file contains hidden or 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/bash | |
| CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| RET=0 | |
| if [ "$CURRENT_BRANCH" != "gh-pages" ]; then | |
| make test | |
| RET=$? | |
| fi | |
| exit $RET |
This file contains hidden or 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 gitc | |
| if set -q argv[2] # two args | |
| git clone https://github.com/$argv[1]/$argv[2] | |
| else # one arg | |
| git clone https://github.com/$argv[1] | |
| end | |
| end |
This file contains hidden or 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
| " basic --------------------------------------------------- {{{ | |
| " colors | |
| set t_Co=256 | |
| syntax on | |
| set nocompatible | |
| set wrap " for long lines | |
| set textwidth=80 " # | |
| set formatoptions=qrn1 " # |
This file contains hidden or 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
| gitc () { | |
| if [[ $1 == */* ]]; then | |
| git clone https://github.com/$1 $2 | |
| else | |
| git clone https://github.com/$1/$2 $3 | |
| fi | |
| } |
This file contains hidden or 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 reel | |
| if test -f $argv[1] | |
| cd .. | |
| else | |
| if pwd | grep -q "$argv[1]" | |
| set x (dirname $PWD) | |
| while test -z (echo (basename $x) | grep "$argv[1]") | |
| set x (dirname $x) | |
| end | |
| cd "$x" |
This file contains hidden or 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
| " basic --------------------------------------------------- {{{ | |
| " colors | |
| set t_Co=256 | |
| syntax on | |
| set nocompatible | |
| set wrap " for long lines | |
| set textwidth=80 " # | |
| set formatoptions=qrn1 " # |
This file contains hidden or 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
| # $ echo "kermit" | |
| # kermit | |
| # $ echo "fozzie bear" | |
| # fozzie bear | |
| # $ echo "miss piggy" | |
| # miss piggy | |
| # $ fdl 3 | |
| # kermit | |
| # fozzie bear | |
| # miss piggy |
This file contains hidden or 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
| #dolast - for the lazy | |
| # usage: dolast <n> | |
| # where <n> is a positive integer representing the number of commands to repeat. | |
| # | |
| # example: | |
| # $ echo "foo" | |
| # foo | |
| # $ echo "bar" | |
| # bar | |
| # $ echo "baz" |
NewerOlder