-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_bashrc
105 lines (83 loc) · 2.73 KB
/
dot_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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# ~/.bashrc
#
export PATH="/bin:/sbin:/usr/bin:/var/lib/snapd/snap/bin:/usr/lib:/usr/local/bin"
export PATH="$PATH:/home/matdexir/Files/Projects/trash"
# sway config
# export XDG_SESSION_TYPE=wayland
# export XDG_SESSION_DESKTOP=sway
# export XDG_CURRENT_DESKTOP=sway
# export DESKTOP_SESSION=sway
# export LIBSEAT_BACKEND=logind
# export MOZ_ENABLE_WAYLAND=1
# export CLUTTER_BACKEND=wayland
# export SDL_VIDEODRIVER=wayland
# history file
export HISTFILE="$XDG_DATA_HOME"/bash/history
export PATH="${PATH}:${HOME}/.local/bin/:$HOME/Files/neovim/build/bin/"
# XDG specific configs
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_DATA_HOME="$HOME"/.local/share
export XDG_STATE_HOME="$HOME"/.local/state
# Partial migrations
export IPYTHONDIR="$XDG_CONFIG_HOME"/jupyter
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter
# Cargo & rust
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export PATH="$PATH:$CARGO_HOME"/bin
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
# gtk
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
# gdb
export GDBHISTFILE="$XDG_DATA_HOME"/gdb/history
alias gdb='gdb -nh -ex "source $XDG_CONFIG_HOME/gdb/gef.py" '
# less
export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
#git
export GITSTATUS_CACHE_DIR="$XDG_CACHE_HOME"/gitstatus
# Node
export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm
export PATH="$PATH:$XDG_DATA_HOME/npm/bin"
alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"'
# Mplayer
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
# Pylint
export PYLINTHOME="$XDG_CACHE_HOME"/pylint
# Wget
export WGETRC="$XDG_CONFIG_HOME"/wgetrc
alias wget='wget --hsts-file="$XDG_CACHE_HOME"/wget-hsts'
# wpm
alias wpm='wpm --stats-file $XDG_CACHE_HOME/wpm/wpm.csv'
#lua-format
alias lua-format=/usr/lib/luarocks/rocks-5.4/luaformatter/scm-1/bin/lua-format
# alias sway='sway.sh'
export GOPATH=$HOME/.local/go
export PATH="$PATH:$GOPATH/bin"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# a few aliases
alias ls='exa --icons'
alias rm='rm -i'
PS1='[\u@\h \W]\$ '
. "$CARGO_HOME"/env
source /usr/share/nvm/init-nvm.sh
alias luamake=/home/matdexir/lua-language-server/3rd/luamake/luamake
# if [ "$TERM" = "linux" -a "`tty`" = "/dev/tty1" ]; then
# exec sway.sh
# exit 0
# fi
# Colorful man pages
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'