-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bashrc
More file actions
91 lines (78 loc) · 2.86 KB
/
.bashrc
File metadata and controls
91 lines (78 loc) · 2.86 KB
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
86
87
88
89
90
91
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# .bashrc - bash configuration file. Maintained since 2012.
#
# Copyright © Bijan Chokoufe Nejad <bijan@chokoufe.com>
#
# This source code is free software that comes with ABSOLUTELY NO WARRANTY; you
# can redistribute it and/or modify it under the terms of the GNU GPL Version 2:
# http://www.gnu.org/licenses/gpl-2.0-standalone.html
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# It is important that we don't overwrite screen-256color which is set by tmux
case "$TERM" in
screen*)
;;
*)
export TERM=xterm-256color
;;
esac
source $HOME/.commonrc
alias so='source ~/.bashrc'
#===================#
# bash completion #
#===================#
if [ -f ~/.git-completion.sh ]; then
source ~/.git-completion.sh
fi
#==============================================================================#
# COLORS #
#==============================================================================#
# Colored man pages
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
# Enable some bash options
shopt -s cdspell
shopt -s cdable_vars
shopt -s checkhash
shopt -s checkwinsize
shopt -s sourcepath
shopt -s no_empty_cmd_completion
shopt -s cmdhist
shopt -s histappend histreedit histverify
shopt -s extglob # Necessary for programmable completion.
set -o notify
set -o noclobber
set -o ignoreeof
# Allow to use backspace when connected via ssh to certain systems
stty erase ^?
#==============================================================================#
# PROMPT #
#==============================================================================#
# Set up prompt
if [ -f ~/.shell_prompt.sh ] ; then
source ~/.shell_prompt.sh
else
PS1='\[\e[00;34m\]\u\[\e[02;37m\]@\[\e[01;31m\]\h:\[\e[01;34m\] \w \[\e[00m\]\n $ '
fi
#==============================================================================#
# LAST COMMAND #
#==============================================================================#
bind '"\e."':yank-last-arg
# added by Miniconda2 installer
export PATH="/home/bijancn/miniconda2/bin:$PATH"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# Added by LM Studio CLI (lms)
export PATH="$PATH:/Users/bcn/.lmstudio/bin"
# End of LM Studio CLI section