-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbashrc
More file actions
38 lines (30 loc) · 985 Bytes
/
Copy pathbashrc
File metadata and controls
38 lines (30 loc) · 985 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
31
32
33
34
35
36
37
38
# If not running interactively, don't do anything (from Arch Linux)
[[ $- != *i* ]] && return
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\$\[\033[00m\] '
export EDITOR=vim
# Disable scroll lock, release key binds of C-S/C-Q
stty -ixon
BASHSENSIBLE=$HOME/.bash-sensible/sensible.bash
[ -f $BASHSENSIBLE ] && source $BASHSENSIBLE
osname="$(uname -s)"
# Linux special
if [[ "$osname" == Linux ]]; then
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
fi
# MacOS special
elif [[ "$osname" == Darwin ]]; then
export MANPATH=$HOME/AppData/LinuxMan:$MANPATH
fi
# aliases
alias l="ls -la"
# atuin
. "$HOME/.atuin/bin/env"
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash)"
# Load local at last
if [ -e "$HOME/.bashrc_local" ]; then
source $HOME/.bashrc_local
fi