Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jubianchi/dotfiles
Some of my dotfiles
https://github.com/jubianchi/dotfiles
Last synced: 3 months ago
JSON representation
Some of my dotfiles
- Host: GitHub
- URL: https://github.com/jubianchi/dotfiles
- Owner: jubianchi
- Created: 2012-12-23T10:33:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T17:55:54.000Z (almost 9 years ago)
- Last Synced: 2024-10-10T14:27:20.445Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 71.3 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
## ZSH Theme
**This theme is highly inspired by [jeremyFreeAgent's Powerline theme](https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme) and by [agnoster's one](https://gist.github.com/3712874)**
_Here is a quick demo of this theme : http://ascii.io/a/1774_
In this repository, you'll find my ZSH theme.
This theme is really cutomizable as I use it in different environments (Ubuntu, OS X, Desktop, Server). The only things that are not easilly customizable at the moment are the segment colors.### How to use
To use this theme, you'll need to install [Oh My ZSH](https://github.com/robbyrussell/oh-my-zsh) and put the content of this repository in your home directory.
Then restart your terminal session and everything shold be OK.### How to customize
There are several things to customize in this theme :
* Every symbol used in the prompt : check out the variables list at the [top of the theme file](https://github.com/jubianchi/dotfiles/blob/master/.oh-my-zsh/themes/jubianchi.zsh-theme#L3-L15)
* Prompt components : check out how to do this in the [.zshrc file](https://github.com/jubianchi/dotfiles/blob/master/.zshrc#L26-L27)You can also define your own component and add them to your prompt :
* A component is a simple function with a name beginning with ```prompt_```
* It takes at least one argument which is a callback to the segment renderer function (this is needed to be able to put the segment at the right or left prompt)Check out examples in [the theme file](https://github.com/jubianchi/dotfiles/blob/master/.oh-my-zsh/themes/jubianchi.zsh-theme#L141-L147)
### Supported tools
* PHP
* Vagrant
* Git
* Screen## gitconfig
* [Install](#install)
* [Example](#example)
* [URLs](#urls)
* [ghs:](#ghs)
* [gh:](#gh)
* [gists:](#gists)
* [bbs:](#bbs)
* [bb:](#bb)
* [Commands](#commands)
* [Repository](#repository)
* [cleanup](#git-cleanup)
* [ignore](#git-ignore)
* [make](#git-make)
* [cl](#git-cl)
* [Configuration](#configuration)
* [aliases](#git-aliases)
* [Staging](#staging)
* [addall](#git-addall)
* [patch](#git-patch)
* [unadd](#git-unadd)
* [Commit](#commit)
* [amend](#git-amend)
* [cp](#git-cp)
* [undo](#git-undo)
* [Branching](#branching)
* [br/bra/brr/brn](#git-brarn)
* [cb](#git-cb)
* [pwd](#git-pwd)
* [Workflow](#workflow)
* [develop/master](#git-developmaster)
* [go](#git-go)
* [finish](#git-finish)
* [wip](#git-wip)
* [Status](#status)
* [d/dc](#git-dc)
* [stat](#git-stat)
* [st](#git-st)
* [ls](#git-ls)
* [Remote](#remote)
* [fetchor/fetchup/pullor/pullup/pushor/pushup](#git-fetchpullpushorup)
* [rp](#git-rp)
* [radd](#git-radd)
* [Log](#log)
* [l](#git-l)
* [graph](#git-graph)
* [Utilities](#utilities)
* [g/k/t](#git-gkt)
* [gist](#git-gist)
* [PFlow](#pflow)
* [Github](#github)### Install
```sh
$ git clone git://github.com/jubianchi/gitconfig.git gitconfig
$ mv gitconfig/* $HOME$ git config --global user.name
$ git config --global user.email$ git config --global github.user
$ git config --global github.password$ git aliases
```### Example
```sh
$ mkdir my-repository
$ git cl ghs:me/my-repository php
$ git go new-feature# On branch new-feature
# Commit, commit, commit...
# Sleep$ git pullor master
# Commit, commit, commit...
$ git finish master
# Reorder, squash...
# On branch master$ git pullor master
$ git pushor master```
### URLs
#### ghs:
Alias for Github clone URL (SSH protocol) :
```sh
$ git clone ghs:jubianchi/atoum
# Shortcut for git clone [email protected]:jubianchi/atoum
```#### gh:
Alias for Github clone URL (Git readonly protocol) :
```sh
$ git clone gh:jubianchi/atoum
# Shortcut for git clone git://github.com/jubianchi/atoum
```#### gists:
Alias for Gist clone URL (SSH protocol) :
```sh
$ git clone gists:a52e82e9ccc25449c325.git
# Shortcut for git clone [email protected]:a52e82e9ccc25449c325.git
```#### bbs:
Alias for BitBucket clone URL (SSH protocol) :
```sh
$ git clone bbs:jubianchi/atoum
# Shortcut for git clone [email protected]:jubianchi/atoum
```#### bb:
Alias for BitBucket clone URL (HTTPS readonly protocol) :
```sh
$ git clone bb:jubianchi/atoum
# Shortcut for git clone https://bitbucket.org/jubianchi/atoum
```### Commands
#### Repository
##### git cleanup
Cleans up the repository by pruning remote, running GC and clearing stash
```sh
$ git cleanup [] (Default: origin)
```##### git ignore
Adds an entry to the .gitignore file
```sh
$ git ignore
```##### git make
Create a new empty repository with an empty initial commit.
This alias lets you chosse a template to init your repository (one of php, default)```sh
$ git make [] (Default: Initial commit) []
```##### git cl
Clones a remote repository and lets you choose a template (one of php, default).
```sh
$ git cl []
```#### Configuration
##### git aliases
Lists all available aliases
```sh
$ git aliases
```#### Staging
##### git addall
Adds all files that are not staged and displays a light status
```sh
$ git addall
```
##### git patchAlias for ```git add --patch```
```sh
$ git patch
```##### git unadd
Unstages file
```sh
$ git unadd
```#### Commit
##### git amend
Amends the last commits keeping its original message
Alias for ```git commit --amend -C HEAD```
```sh
$ git amend
```##### git cp
Cherry-picks a commit and edit message
Alias for ```git cherry-pick -ex```
```sh
$ git cp
```##### git undo
Resets the last commit keeping the modifications (soft reset) and displays a light status
```sh
$ git undo
```#### Branching
##### git br(?:|a|r|n)
Displays branches list
Aliases for ```git branch```
```sh
# Displays local branches
$ git br
# Displays all branches (local + remote)
$ git bra
# Displays remote branches
$ git brr
# Displays all (local + remote) not merged branches
$ git brn
```##### git cb
Checkout a new branch
Aliases for ```git checkout -b```
```sh
$ git cb
```
##### git pwdDisplays the name of the current branch
```sh
$ git pwd
```#### Workflow
##### git (?:develop|master)
Checkout the develop or master branch
Aliases for ```git checkout```
```sh
$ git master
$ git develop
```_You could have one alias for each [long running branch](http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Long-Running-Branches) in your repositories configuration file_
##### git go
Creates (if it does not exist) and checkout a branch
```sh
$ git go
```##### git finish
Finishes the current topic branch by interactively rebasing its commits and merging it into another branch
```sh
$ git finish
```##### git wip
Starts a WIP branch saving the current moidifications to a new commit and gets you back to your working branch.
```sh
$ git wip
```#### Status
##### git dc?
Aliases for ```git diff``` to bypass pager caveat
```sh
$ git d
# Alias for git diff --cached
$ git dc
```##### git stat
Displays current diff stats
Alias ```git diff --stat```
```sh
$ git stat
```##### git st
Displays an interactive status screen
Alias for ```git status``` using tig
```sh
$ git st
```##### git ls
Displays a light status
```sh
$ git ls
```#### Remote
**Pulls will be automatically rebased when using these aliases**
##### git (?:fetch|pull|push)(?:or|up)
Runs actions on remotes :
* or : origin
* up : upstreamAliases for ```git (?:fetch|pull|push)```
```sh
$ git fetchor
$ git fetchup$ git pullor []
$ git pullup []$ git pushor []
$ git pushup []
```##### git rp
Pulls a remote branch and automatically rebase
Alias for ```git pull --rebase```
```sh
$ git rp []
```##### git radd
Adds a new remote
Alias for ```git remote add```
```sh
$ git radd
```#### Log
##### git l
Alias for ```git log``` to bypass pager caveat
```sh
$ git l
```##### git graph
Displays a nice formatted graph
Alias for ```git log```
```sh
$ git graph
```#### Utilities
##### git (?:g|k|t)
Runs usefull git utilities :
* g : Alias for ```git gui```
* k : Alias for ```gitk```
* t : Alias for ```tig```[Check out Tig homepage](http://jonas.nitro.dk/tig/)
```sh
$ git g
$ git k
$ git t
```##### git gist
Lets you quickly build a Gist
[Check out git-gist homepage](https://github.com/defunkt/gist)
```sh
$ git gist
```#### PFlow
[Check out PFlow homepage](https://github.com/pmsipilot/pflow)
```sh
$ git feature
$ git fstart
$ git fsync
$ git ffinish
$ git fpublish
```#### Github
**If you work a lot with Github, check out [defunkt/hub](https://github.com/defunkt/hub) which is a great tool integrating Github's features to git**