Skip to content

Instantly share code, notes, and snippets.

@hawx
Last active April 26, 2017 15:57
Show Gist options
  • Save hawx/8524291 to your computer and use it in GitHub Desktop.
Save hawx/8524291 to your computer and use it in GitHub Desktop.
.files
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
[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
---
:current_pair: []
:group_email: [email protected]
#!/usr/bin/env sh
cp .bashrc ~/.bashrc
cp .gitconfig ~/.gitconfig
cat ~/.hitchrc 1> /dev/null 2> /dev/null && cp .hitchrc ~/.hitchrc
echo "Installed dotfiles."
@andrewseward
Copy link

OH MY SHIT

@andrewseward
Copy link

DOESN'T WORK ON MY MAC

@hawx
Copy link
Author

hawx commented Feb 10, 2014

@Codesleuth
Copy link

Default\Extensions\gighmmpiobklfepjocnamgkkbiglidom for adblock

@jimgolfgti
Copy link

alias msb='/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe $*'

@jimgolfgti
Copy link

Also you should add bashmarks and remove the cd /c/dev/wip/com.
With bashmarks you can just say 'g fb{enter}'

@Codesleuth
Copy link

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