Last active
April 26, 2017 15:57
-
-
Save hawx/8524291 to your computer and use it in GitHub Desktop.
.files
This file contains 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_author() { | |
if [ -z "$GIT_AUTHOR_NAME" ]; then | |
echo "developer" | |
else | |
echo "$GIT_AUTHOR_NAME" | |
fi | |
} | |
export PS1='\[\033]0;$MSYSTEM:\w\007\]\n\[\033[32m\]$(git_author) @ \h \[\033[33m\]\w$(__git_ps1) \[\033[0m\]\n$ ' | |
export PATH=~/Go/bin:/c/Program\ Files/erl5.10.4/bin:/c/Program\ Files\ \(x86\)/Sublime\ Text\ 4:$PATH | |
export GOROOT=/c/Go | |
export GOPATH=~/Go | |
export EDITOR=vim | |
hitch() { | |
command hitch "$@" | |
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi | |
} | |
chrome() { | |
SRC="/c/Users/Developer/AppData/Local/Google/Chrome/User Data" | |
DST="/c/temp/chromes/OtherChrome" | |
if [[ ! -d "$DST" ]]; then | |
mkdir -p $DST/Default | |
cp "$SRC/Default/Bookmarks" $DST/Default | |
cp "$SRC/Default/History" $DST/History | |
fi | |
/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe --incognito --no-first-run --user-data-dir=$DST & | |
} | |
quotify() { | |
(sed "s/^/'/" | sed "s/$/',/") < /dev/clipboard > /dev/clipboard | |
} | |
refresh-pi() { | |
ssh $1 -Y -t 'export DISPLAY=:0.0 | |
xdotool key --window "$(xdotool search --onlyvisible --class chromium | head -n 1)" F5' | |
} | |
alias edit='start notepad++.exe $*' | |
alias sub='sublime_text' | |
alias ls='ls -GFhL' | |
alias la='ls -a' | |
alias ll='ls -l' | |
alias be='bundle exec' | |
alias clean-chromes='rm -rf /c/temp/chromes' | |
alias unhitch='hitch -u' | |
alias fix-resharper='rm -rf /c/Users/Developer/AppData/{Local,Roaming}/JetBrains/ReSharper/*/SolutionCaches && rm -rf /c/Windows/Microsoft.NET/Framework{,64}/*/Temporary\ ASP.NET\ Files/*' | |
alias update-dotfiles='git clone https://gist.github.com/8524291.git dotfiles && cd dotfiles && sh install.sh && cd .. && rm -rf dotfiles && . ~/.bashrc' | |
alias msb='/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe $*' | |
alias clean-branches='git checkout master && git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' | |
alias sln='start source/*.sln' | |
hitch | |
cd /c/dev |
This file contains 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
[push] | |
default = simple | |
[user] | |
name = EsendexDev | |
email = [email protected] | |
[core] | |
autocrlf = false | |
[alias] | |
st = status -sb | |
df = diff --word-diff | |
dfc = diff --word-diff --cached | |
co = checkout | |
cb = checkout -b | |
undo-commit = reset --soft HEAD~1 | |
lg = log --oneline --decorate | |
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
append = commit --amend --no-edit |
This file contains 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
--- | |
:current_pair: [] | |
:group_email: [email protected] |
This file contains 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
#!/usr/bin/env sh | |
cp .bashrc ~/.bashrc | |
cp .gitconfig ~/.gitconfig | |
cat ~/.hitchrc 1> /dev/null 2> /dev/null && cp .hitchrc ~/.hitchrc | |
echo "Installed dotfiles." |
Hey it's Josh!
OH MY SHIT
DOESN'T WORK ON MY MAC
look at https://github.com/hawx/dotfiles then
Default\Extensions\gighmmpiobklfepjocnamgkkbiglidom for adblock
alias msb='/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe $*'
Also you should add bashmarks and remove the cd /c/dev/wip/com.
With bashmarks you can just say 'g fb{enter}'
Could you add the following extra alias?
alias edit='start notepad++.exe $*'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One line install: