Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias dev='cd /Users/kev/dev'
- alias fjall='cd /Users/kev/dev/oakwood/fjallraven/wp-content/themes/fjallraven/assets'
- alias ga='git add'
- alias gco='git checkout'
- alias yolo='git reset --hard'
- alias gs='git status'
- alias gm='git commit -m'
- alias glo='git log --oneline --decorate'
- alias gcod='git checkout develop'
- alias gcom='git checkout master'
- alias stash='git stash'
- alias pop='git stash pop'
- alias gdr='git push origin --delete'
- alias gdl='git branch -d'
- alias ls='ls -GAl'
- alias link='jspm install --link apsis:tenko@dev'
- alias gulpsi='gulp --skipinstall'
- # Lock the screen (when going AFK)
- alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
- # Reload the shell (i.e. invoke as a login shell)
- alias reload="exec $SHELL -l"
- # the fuck?
- eval "$(thefuck --alias)"
- # DEPLOY
- alias deploy='rocketeer deploy -S'
- # git flow aliases
- alias gf='git flow'
- alias gff='git flow feature'
- alias gffs='git flow feature start'
- alias gfff='git flow feature finish'
- alias gfr='git flow release'
- alias gfrs='git flow release start'
- alias gfrf='git flow release finish'
- alias md='mkdircd_func'
- alias server='npm run kraftverk-server'
- alias build='npm run kraftverk-build'
- alias app='node index'
- mkdircd_func () {
- mkdir -p "$@" && cd "$@"
- }
- # clones a repository & cds into it
- # - arg 1 - url|username|repo remote endpoint, username on github, or name of
- # repository.
- # - arg 2 - (optional) name of repo
- #
- # usage:
- # $ clone things
- # .. git clone git@github.com:stephenplusplus/things.git things
- # .. cd things
- # .. subl .
- #
- # $ clone git@github.com:stephenplusplus/dots.git
- # .. git clone git@github.com:stephenplusplus/dots.git dots
- # .. cd dots
- # .. subl .
- #
- # $ clone yeoman generator
- # .. git clone git@github.com:yeoman/generator.git generator
- # .. cd generator
- # .. subl .
- function clone {
- # customize username to your own
- local username="kvzivn"
- local url=$1;
- local repo=$2;
- if [[ ${url:0:4} == 'http' || ${url:0:3} == 'git' ]]
- then
- # just clone this thing.
- repo=$(echo $url | awk -F/ '{print $NF}' | sed -e 's/.git$//');
- elif [[ -z $repo ]]
- then
- # my own stuff.
- repo=$url;
- url="git@github.com:$username/$repo";
- # else
- # # not my own, but I know whose it is.
- # url="git@github.com:$url/$repo.git";
- fi
- git clone $url $repo && cd $repo;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement