-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
85 lines (62 loc) · 2.15 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# .bashrc
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc
# Source ARM definitions
[ -e $HOME/.bashrc.arm ] && source $HOME/.bashrc.arm
[ -e $HOME/.bashrc.codasip ] && source $HOME/.bashrc.codasip
export LANG=en_US.utf-8
export LC_ALL=en_US.utf-8
# If not running interactively, don't do anything!
[[ $- != *i* ]] && return
#------------------------------------------------------------
# PROMPT
#------------------------------------------------------------
source $HOME/.liquidprompt/liquidprompt
#------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------
# export MAKEFLAGS='-j8'
# Make Bash append rather than overwrite the history on disk:
shopt -s histappend
export HISTIGNORE="&:ls:[bf]g:exit"
export HISTSIZE=10000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# When changing directory small typos can be ignored by Bash
shopt -s cdspell
export EDITOR=vim
# for developing: http://udrepper.livejournal.com/11429.html
#export MALLOC_CHECK_=3
#export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
# Let me have core dumps
ulimit -c unlimited
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
#------------------------------------------------------------
# ALIAS
#------------------------------------------------------------
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias tree='tree --dirsfirst -C'
alias mozilla='firefox'
umask 007
[ -d "$HOME/.cargo" ] && source "$HOME/.cargo/env"
export PATH="$PATH:/home/jleroy/.local/bin"
# Use ccache if available.
if command -v ccache &> /dev/null; then
export OBJCACHE="ccache"
export CC="ccache gcc"
export CXX="ccache g++"
fi
. "$HOME/.cargo/env"
. "$HOME/.rye/env"
eval "$(starship init bash)"