diff options
| author | jason | 2020-11-25 11:09:45 -0700 |
|---|---|---|
| committer | jason | 2020-11-25 11:09:45 -0700 |
| commit | 2458059608e817c1ee9b22891da71374043ecc10 (patch) | |
| tree | 57dfd98a1d809a25ca60740ba1589f9464279037 /bash | |
| parent | 446c0865bfeddd8a631eeddf5ddd8332d794f8e9 (diff) | |
| download | dotfiles-2458059608e817c1ee9b22891da71374043ecc10.tar.gz dotfiles-2458059608e817c1ee9b22891da71374043ecc10.zip | |
update bashrc with paths for android studio, rust, nix, and system bash completions
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index f89a928..73a2b8c 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -6,12 +6,35 @@ if [ -d $HOME/bin/flutter/ ]; then | |||
| 6 | PATH="${HOME}/bin/flutter/bin:${PATH}" | 6 | PATH="${HOME}/bin/flutter/bin:${PATH}" |
| 7 | fi | 7 | fi |
| 8 | 8 | ||
| 9 | # Enable android studio | ||
| 10 | if [ -d $HOME/bin/android-studio/bin ]; then | ||
| 11 | PATH="${HOME}/bin/android-studio/bin:${PATH}" | ||
| 12 | fi | ||
| 13 | |||
| 14 | # Enable rust and cargo | ||
| 15 | if [ -x $HOME/.cargo/bin/cargo ]; then | ||
| 16 | PATH="${HOME}/.cargo/bin:${PATH}" | ||
| 17 | fi | ||
| 18 | |||
| 19 | # Enable nix | ||
| 20 | if [ -f $HOME/.nix-profile/etc/profile.d/nix.sh ]; then | ||
| 21 | source $HOME/.nix-profile/etc/profile.d/nix.sh | ||
| 22 | fi | ||
| 23 | |||
| 24 | # Enable system bash completions | ||
| 25 | if [ -f /etc/bash_completion ]; then | ||
| 26 | . /etc/bash_completion | ||
| 27 | fi | ||
| 28 | |||
| 29 | |||
| 9 | TERM="xterm-256color" | 30 | TERM="xterm-256color" |
| 10 | 31 | ||
| 11 | # direnv's use_nix will overwrite TMPDIR so it needs to be hard coded to /tmp/ | 32 | # direnv's use_nix will overwrite TMPDIR so it needs to be hard coded to /tmp/ |
| 33 | #EMACS_SERVER_SOCKET="/tmp/emacs$(id -u)/server" | ||
| 12 | #EMACS_SERVER_SOCKET="${TMPDIR:-/tmp}/emacs$(id -u)/server" | 34 | #EMACS_SERVER_SOCKET="${TMPDIR:-/tmp}/emacs$(id -u)/server" |
| 13 | EMACS_SERVER_SOCKET="/tmp/emacs$(id -u)/server" | 35 | #EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}" |
| 14 | EDITOR="emacsclient -s ${EMACS_SERVER_SOCKET}" | 36 | |
| 37 | EDITOR="emacsclient -nw" | ||
| 15 | alias e="${EDITOR}" | 38 | alias e="${EDITOR}" |
| 16 | 39 | ||
| 17 | # History settings | 40 | # History settings |