Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrijac/dotfiles

My dotfiles
https://github.com/andrijac/dotfiles

Last synced: about 1 month ago
JSON representation

My dotfiles

Awesome Lists containing this project

README

        

dotfiles
========

These are basically for my personal use, but feel free to check them and reuse some scripts.

`bin/dotsync.sh` is the tool which handles pushing/pulling to github

Maybe the best tricks belong to .bashrc, where three functions

* Detect if GNU Screen is running in order to show an "S" on the prompt (PS1)
* Show the return value of the previous command if it is different than zero
* Show the history line if the retval is zero

I reuse these dotfiles on many machines, so there is some trickery to detect the
machine it's running on

```shell
# Override the "--color=auto" which doesn't work on a Mac
require_machine fightclub && alias ls='ls -G'
```

There is some good external stuff, like [j.py](https://github.com/rupa/j2) or the [git prompt](https://github.com/magicmonty/bash-git-prompt)