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
| export function fetcher<T>(resource: RequestInfo, init: RequestInit = {}): Promise<T> { | |
| return fetch(resource, { | |
| ...init, | |
| credentials: 'include', | |
| }).then( | |
| (response) => { | |
| return getJSON(response) | |
| .catch((err) => { | |
| throw new InternalError(err.message); | |
| }) |
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| PS1="${PS1%\\w*}\[\033[01;34m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[01;34m\] \$\[\033[00m\] "; | |
| alias gitRemoveMerged = "git branch --merged | grep -v 'develop$\|master$\|* ' | xargs git branch -d"; |