Last active
March 17, 2017 07:53
-
-
Save sebj54/81a141e440dd9a901a350ea3c06a49b7 to your computer and use it in GitHub Desktop.
Config
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
alias lal='ls -Al' | |
changeSite() { | |
cd /d/sites/$1 | |
} | |
alias site=changeSite | |
stripMin () { | |
rename -f "s/\.min//g" $1 | |
} | |
alias stripmin=stripMin | |
apkSign () { | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore platforms/android/build/outputs/apk/my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name | |
zipalign -f 4 platforms/android/build/outputs/apk/android-release-unsigned.apk platforms/android/build/outputs/apk/release.apk | |
echo 'platforms/android/build/outputs/apk/release.apk signed and aligned' | |
} | |
alias apksign=apkSign | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-color) color_prompt=yes;; | |
esac | |
# uncomment for a colored prompt, if the terminal has the capability; turned | |
# off by default to not distract the user: the focus in a terminal window | |
# should be on the output of commands, not on the prompt | |
force_color_prompt=yes | |
if [ -n "$force_color_prompt" ]; then | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
# We have color support; assume it's compliant with Ecma-48 | |
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such | |
# a case would tend to support setf rather than setaf.) | |
color_prompt=yes | |
else | |
color_prompt= | |
fi | |
fi | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi | |
unset color_prompt force_color_prompt | |
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
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
[user] | |
email = sebastien@medialta.com | |
name = Sébastien JEAN | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
sync = !git remote update && git reset --hard && git pull --rebase origin master | |
cleanup = "!f() { git branch --merged | grep -v '*' | xargs -n 1 git branch -d; }; f" | |
[help] | |
autocorrect = 10 | |
[core] | |
autocrlf = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment