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/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
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
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
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
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
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
| #The following lines should be added to your .bashrc file to use the git-output.awk file | |
| SEP="║" | |
| SEP2="•" | |
| function parse_git_output { | |
| path=$(pwd) | |
| # Don't do git status over networked paths. | |
| # It kills performance, and the prompt takes forever to return. | |
| if [[ $path =~ "/net/" ]]; then | |
| return |
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
| #compdef - my-zargs t | |
| setopt localoptions extendedglob | |
| () { | |
| local -a tmp0 tmp1 tmp | |
| # copied from _zargs | |
| echo "\ | |
| -eof::=eof e::=eof \ | |
| -exit 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
| # .zshrc | |
| # (copyleft) 2012 by Felix Ruess | |
| # | |
| # ---[ System settings ]------------------------------------------------ | |
| limit -s coredumpsize 0 | |
| umask 0027 | |
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 ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
| function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
| function trim(s) { return rtrim(ltrim(s)); } | |
| BEGIN { | |
| # whatever | |
| } | |
| { | |
| # whatever | |
| } | |
| 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
| # Reference: http://blog.jerodsanto.net/2010/12/minimally-awesome-todos/ | |
| # | |
| # Improvements: | |
| # | |
| # *) It now supports tracking multiple projects/todo files. | |
| # *) Use 'cat -b' to get task order instead of hard-coding line number in files. | |
| # | |
| # 3 actions available: | |
| # - Create a new task in project "prj": td prj task | |
| # - Delete third task: tddone prj 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
| # nivoc's zshrc file v0.1, based on: | |
| # kcbanner's zshrc file v0.1 and | |
| # jdong's zshrc file v0.2.1 and | |
| # mako's zshrc file, v0.1 | |
| setopt ALL_EXPORT | |
| DISABLE_AUTO_TITLE="true" | |
| # Set/unset shell options | |
| setopt notify globdots correct pushdtohome cdablevars autolist |