-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
61 lines (47 loc) · 1.53 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1=$'\[\e[38;5;39m\]\u\[\e[0m\]@\[\e[38;5;208m\]\H \[\e[38;5;39m\]\W
\[\e[38;5;39m\]$ \[\e[0;0m\]'
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty*|tmux*|screen*|st*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
# Aliases
source $HOME/dotfiles/aliases
# History control
export HISTSIZE=10000
export HISTCONTROL=erasedups:ignoreboth
export HISTIGNORE="history *:df *:exit:fg:bg:ll:ls:la:l.:l:cd:top:htop:glances:free *:clear"
#avoid overwriting history
#[ $SHELL = "/bin/bash" ]; shopt -s histappend
# ls colors
eval $(dircolors ~/.dir_colors)
# case insensitive tab completion
bind "set completion-ignore-case on"
set colored-stats on
set completion-ignore-case on
set skip-completed-text on
# vim keybindings
#set -o vi
# pipenv config
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# https://gnunn1.github.io/tilix-web/manual/vteconfig/
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh
fi
###CPCTELERA_START
##
## These lines configure CPCtelera in your system
##
export CPCT_PATH=/home/felix/software/cpctelera/cpctelera
export PATH=${PATH}:/home/felix/software/cpctelera/cpctelera/tools/scripts
###CPCTELERA_END
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"