-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
55 lines (40 loc) · 1.39 KB
/
.bashrc
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
# ~/.bashrc: executed by Interactive non-login shells.
# Execute bash helper scripts.
function src() { [ -r "$1" ] && . "$1" 2>/dev/null; }
src $HOME/.bash_environment
src $HOME/.bash_completion
src $HOME/.bash_aliases
src $HOME/.bash_prompt
src $(brew --prefix)/etc/bash_completion
# Setup drush.
src $HOME/.drush/drush.bashrc
src $HOME/.drush/drush.complete.sh
#src $HOME/.drush/drush.prompt.sh
# Register nvm function as a command for cli.
src $(brew --prefix nvm)/nvm.sh
# Register rvm function as a command for cli.
src $HOME/.rvm/scripts/rvm
# RVM Bash Completions
src $rvm_path/scripts/completion
# Update PATH for the Google Cloud SDK.
src $HOME/.google-cloud-sdk/path.bash.inc
# Enable bash completion for Google Cloud.
src $HOME/.google-cloud-sdk/completion.bash.inc
# Enable bash completion for Drupal Console.
src $HOME/.console/console.rc
# Git bash completion
src $HOME/.git-completion.sh
# Platform.sh CLI config
src $HOME/.platformsh/shell-config.rc
# Make bash append rather than overwrite the history on disk
shopt -s histappend
# Ignore typos when changing directories, for example:
# cd /vr/lgo/apaache would find /var/log/apache
shopt -s cdspell
# Prevent Mac OSX dot-underscore in tarfiles.
export COPYFILE_DISABLE=true
# Directory-specific environment variables!
# ENSURE THIS IS ALWAYS THE LAST TO EXECUTE IN THIS FILE
# http://direnv.net/
eval "$(direnv hook bash)"