-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
30 lines (23 loc) · 730 Bytes
/
bashrc
File metadata and controls
30 lines (23 loc) · 730 Bytes
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
#!/bin/bash
#
# ~/.bashrc
#
# Load functions (necessary for some non-interactive scripts)
[ -f "$DOTDIR/bash/functions" ] && . "$DOTDIR/bash/functions"
# If not running interactively, don't do anything else
[[ $- != *i* ]] && return
# Source bash-specific files
for file in "$DOTDIR"/bash/{options,prompt,aliases,completions} ; do
source_if_exists "$file"
done
# Base16 Shell
BASE16_SHELL="$DOTDIR/base16/base16-shell/"
[ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
# Get dircolors
eval "$(dircolors ~/.dircolors)"
# Add fzf bindings
source_if_exists ~/.fzf.bash
# Add quick foreground binding
bind -x '"\C-f":"fg"'
bind -m "vi-command" -x '"\C-f":"fg"'