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
| { | |
| "extends": "airbnb", | |
| "rules": { | |
| "strict": 0, | |
| "indent": [2, "tab", { "SwitchCase": 1 }], | |
| "no-use-before-define": [2, "nofunc"], | |
| "object-shorthand": 0, | |
| "max-len": [1, 120, 2, { | |
| "ignoreUrls": true, | |
| "ignoreComments": 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
| # Git branch in prompt. | |
| function parse_git_dirty { | |
| local status=$(git status --porcelain 2> /dev/null) | |
| if [ "$status" != "" ]; then | |
| echo "+" | |
| fi | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\ (\1$(parse_git_dirty))/" |
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
| # Git branch in prompt. | |
| function parse_git_dirty { | |
| local status=$(git status --porcelain 2> /dev/null) | |
| if [ "$status" != "" ]; then | |
| echo "+" | |
| fi | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\ (\1$(parse_git_dirty))/" |