-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
71 lines (56 loc) · 1.51 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
# Setup aliases
. ~/.bash_aliases
# Setup terminal
TERM=xterm
PS1="\[\e[0;32m\]\H\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\[\e[m\] \[\e[1;37m\] \n$ "
export TERMINAL=/usr/bin/kitty
# Editor
VISUAL=vim
EDITOR=vim
set -o vi
# Browser
BROWSER=firefox
# avoid duplicates in history
HISTCONTROL=ignoredups:erasedups
HISTTIMEFORMAT="%F %T "
# append history entries
shopt -s histappend
# FZF
# https://github.com/junegunn/fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Node Version Manager
NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# User executables
PATH="$HOME/bin:$PATH"
# Set default browser
BROWSER=/snap/bin/firefox
PATH="${HOME}/.emacs.d/bin:$PATH"
# For ibus
export GTK_IM_MODULE=ibus
export QT4_IM_MODULE=xim
export QT_IM_MODULE=xim
export XMODIFIERS=@im=ibus
export GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=1 # fixes emacs gettext issue
ibus-daemon -drx
# Setup/connect to single ssh agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > ~/.ssh-agent
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<~/.ssh-agent)"
fi
# # For pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# For auto activation of environements
eval "$(pyenv virtualenv-init -)"
# NVM
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Set lang
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
# Starship
eval "$(starship init bash)"