forked from giggio/bashscripts
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbashrc.bash
executable file
·70 lines (61 loc) · 1.87 KB
/
bashrc.bash
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
THIS_FILE=$BASH_SOURCE
THIS_DIR=`dirname $THIS_FILE`
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=20000
HISTFILESIZE=20000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
if hash vim 2>/dev/null && [ -f $THIS_DIR/.vim.as.default.editor ]; then
export EDITOR=vim
fi
export PATH=$THIS_DIR/bin:$HOME/bin:$HOME/.local/bin:$PATH
N_PREFIX=$HOME/.n
if [ -d $N_PREFIX ]; then
export PATH=$N_PREFIX/bin:$PATH
export N_PREFIX
fi
DENO_INSTALL=$HOME/.deno
if [ -d $DENO_INSTALL ]; then
export PATH=$DENO_INSTALL/bin:$PATH
export DENO_INSTALL
fi
if [ -d /usr/local/go/bin ]; then
export PATH=$PATH:/usr/local/go/bin
fi
if [ -d $HOME/.dotnet/tools ]; then
export PATH=$PATH:$HOME/.dotnet/tools
fi
export GPG_TTY=$(tty)
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
export LC_ALL=en_US.UTF-8
set -o vi
bind '"jj":"\e"'
tabs -4
export DOCKER_BUILDKIT=1
export INPUTRC=$THIS_DIR/.inputrc