-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
47 lines (43 loc) · 1.34 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
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# export homies
export EDITOR=vim
export VISUAL=vim
export TERM="xterm-256color"
export PATH="/home/"$(whoami)"/.local/bin/:$PATH"
export PATH="/home/"$(whoami)"/.config/emacs/bin/:$PATH"
source ~/.config/git-prompt.sh
source ~/.scripts/alias
### ARCHIVE EXTRACTION
# usage: ex <file>
ex ()
{
if [ -f "$1" ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1;;
*.7z) 7z x $1 ;;
*.deb) ar x $1 ;;
*.tar.xz) tar xf $1 ;;
*.tar.zst) unzstd $1 ;;
*) echo "'$1' cannot be extracted via ex()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
#zoxide bash connection
eval "$(zoxide init bash)"
#my prompt
PROMPT_COMMAND='PS1_CMD1=$(git branch --show-current 2>/dev/null)'; PS1='\[\e[38;5;255;48;5;104;1;3m\]\u\[\e[0;1;48;5;98m\]@\[\e[48;5;132;3m\]\h\[\e[23;48;5;241m\]#\[\e[22m\]\w\[\e[38;5;255;48;5;28m\]${PS1_CMD1}\[\e[0;38;5;148;1m\]\$\[\e[0m\]'