summaryrefslogtreecommitdiff
path: root/guides/setups/dotfiles.md
blob: 7a30bcbd2ad721701e5e4dff8fc26efc40cfc4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Some day all of these will live in my dotfiles repository.

Until then…

# Bash

## `~/.bash_aliases`

``` bash
# Make Bash expand aliases before running sudo.
alias sudo='sudo '
```

## `.bashrc`

``` bash
# Unset the TTY's "stop" char, so that readline receives C-s.
if tty -s
then
    stty stop ''
fi
```

# `.gitconfig`

``` ini
[core]
    quotePath = false
[user]
    name = …    # Not needed if GECOS field is set in /etc/passwd.
    email = …   # Not needed if $EMAIL is set.
[alias]
    root = rev-parse --show-toplevel
    forget = update-index --assume-unchanged
    remember = update-index --no-assume-unchanged
    wut = log --branches --decorate --graph --oneline
```