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
| #include <stdio.h> | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| printf("hello, world\n"); | |
| exit(0); | |
| } |
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 | |
| function original_ls() | |
| { | |
| printf '%s\n' ${1:+${1%/}/}*; | |
| } | |
| function original_cat() | |
| { | |
| local IFS=$'\n' |
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 | |
| successfully() { | |
| $* || (echo "failed" 1>&2 && exit 1) | |
| } |
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 Func(flg) | |
| if a:flg | |
| echo "true" | |
| else | |
| echo "false" | |
| endif | |
| endfunction | |
| call Func(0) |
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
| # -u is unset | |
| shopt -u expand_aliases | |
| # unalias command | |
| # disable alias of ls | |
| unalias ls | |
| # -a is all | |
| unalias -a | |
| # immediately disable alias if ls |
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
| exec 3>&2 | |
| exec 2>/dev/null | |
| # Some commands | |
| exec 2>&3 | |
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
| .. | |
| .::::. | |
| ___________ :;;;;:`____________ | |
| \_________/ ?????L \__________/ | |
| |.....| ????????> :.......' | |
| |:::::| $$$$$$"`.:::::::' , | |
| ,|:::::| $$$$"`.:::::::' .OOS. | |
| ,7D|;;;;;| $$"`.;;;;;;;' .OOO888S. | |
| .GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS. | |
| 'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF` |
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
| diff --git bin/richpager bin/richpager | |
| index fcaa518..43aa067 100755 | |
| --- bin/richpager | |
| +++ bin/richpager | |
| @@ -24,7 +24,7 @@ if has 'python'; then | |
| # | |
| get_styles="from pygments.styles import get_all_styles | |
| styles = list(get_all_styles()) | |
| - print '\n'.join(styles)" | |
| + print('\n'.join(styles))" |
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
| if [[ -z $TMUX ]]; then | |
| echo "you are not on tmux" >&2 | |
| exit 1 | |
| fi | |
| if [[ $1 =~ ^[0-9]+$ ]]; then | |
| arg="-t $1" | |
| 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
| zplug "junegunn/fzf", \ | |
| as:command, \ | |
| use:"bin/fzf-tmux" | |
| zplug "junegunn/fzf-bin", \ | |
| as:command, \ | |
| from:gh-r, \ | |
| rename-to:"fzf" |