-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
29 lines (21 loc) · 805 Bytes
/
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
#! /usr/bin/env bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ -n "$SSH_TTY" ]] && PS1="\[\e[1;35m\](SSH) \h \[\e[0m\]\w \$ " || PS1="\h \[\e[1;32m\]\w \$\[\e[0m\] "
# shellcheck disable=SC2046
eval $(keychain --eval --agents ssh,gpg id_rsa)
# shopt
shopt -s checkwinsize
shopt -s extglob
shopt -s histappend
# aliases
# shellcheck disable=SC1090
[[ -f "$HOME/.bash_aliases" ]] && . "$HOME/.bash_aliases"
# bash completion
# shellcheck disable=SC1091
[[ $PS1 && -f "/usr/share/bash-completion/bash_completion" ]] && . "/usr/share/bash-completion/bash_completion"
[[ $PS1 && -f "/usr/share/fzf/key-bindings.bash" ]] && . "/usr/share/fzf/key-bindings.bash"
[[ $PS1 && -f "/usr/share/fzf/completion.bash" ]] && . "/usr/share/fzf/completion.bash"