Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (33 sloc) 1.543 kB
0e28ec0 @mathiasbynens .bash_profile: Add `~/bin` to the `$PATH`
authored
1 # Add `~/bin` to the `$PATH`
2 export PATH="$HOME/bin:$PATH"
3
ab64db6 @mathiasbynens .bash_profile: Source `~/.path` before and `~/.extra` after all the o…
authored
4 # Load the shell dotfiles, and then some:
0e28ec0 @mathiasbynens .bash_profile: Add `~/bin` to the `$PATH`
authored
5 # * ~/.path can be used to extend `$PATH`.
6 # * ~/.extra can be used for other settings you don’t want to commit.
3a7ae53 @mathiasbynens .bash_profile: Fix typo
authored
7 for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
6b75bfc @mathiasbynens Use tabs instead of double-space indents
authored
8 [ -r "$file" ] && source "$file"
7d02270 @mathiasbynens Initial commit.
authored
9 done
74b3792 @mathiasbynens Sexier file sourcing.
authored
10 unset file
7d02270 @mathiasbynens Initial commit.
authored
11
12 # Case-insensitive globbing (used in pathname expansion)
050165b added stuff for ssh tab completion
John Hirbour authored
13 shopt -s nocaseglob
14
ad45745 @mathiasbynens .bash_profile: Tweaks
authored
15 # Append to the Bash history file, rather than overwriting it
16 shopt -s histappend
17
18 # Autocorrect typos in path names when using `cd`
19 shopt -s cdspell
20
67289cc @mathiasbynens Enable some Bash 4 features when possible:
authored
21 # Enable some Bash 4 features when possible:
22 # * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
23 # * Recursive globbing, e.g. `echo **/*.txt`
24 for option in autocd globstar; do
b3c3107 @mathiasbynens Remove the feature tests for Bash 4 features and just fail silently
authored
25 shopt -s "$option" 2> /dev/null
67289cc @mathiasbynens Enable some Bash 4 features when possible:
authored
26 done
27
5d7bc00 @mathiasbynens Prefer US English and use UTF-8.
authored
28 # Prefer US English and use UTF-8
ba8d751 @mathiasbynens Use double quotes more consistently.
authored
29 export LC_ALL="en_US.UTF-8"
30 export LANG="en_US"
5d7bc00 @mathiasbynens Prefer US English and use UTF-8.
authored
31
730c7f7 @mathiasbynens Better tab completion for SSH hostnames based on ~/.ssh/config.
authored
32 # Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
c7a82c2 @mathiasbynens Check if ~/.ssh/config exists before grepping it.
authored
33 [ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
2db7a49 @mathiasbynens Add tab completion for `defaults read|write NSGlobalDomain`. Useful w…
authored
34
35 # Add tab completion for `defaults read|write NSGlobalDomain`
74b3792 @mathiasbynens Sexier file sourcing.
authored
36 # You could just use `-g` instead, but I like being explicit
03458f1 @mathiasbynens .bash_profile: Add tab completion for `killall SystemUIServer`
authored
37 complete -W "NSGlobalDomain" defaults
38
82baf98 @mathiasbynens .bash_profile: Add `killall` tab completion for common apps
authored
39 # Add `killall` tab completion for common apps
aff769f @nvartolomei .bash_profile: Update `killall` Tab completion for OS X 10.8
nvartolomei authored
40 complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall
b61588d @mathiasbynens .bash_profile: Add tab completion for many more commands
authored
41
42 # If possible, add tab completion for many more commands
43 [ -f /etc/bash_completion ] && source /etc/bash_completion
Something went wrong with that request. Please try again.