-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
53 lines (39 loc) · 1.1 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
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export EDITOR=/usr/bin/nvim
alias dfh='df -h'
alias f="grep -RHn"
alias la='ls -a'
alias ll='ls -l'
alias lla='ls -a -l'
alias v="nvim"
alias v.="v ."
alias u="urxvt &"
alias poweroff='sudo poweroff'
alias reboot='sudo reboot'
alias sx='startx'
alias nsx='nvidia-xrun'
complete -cf sudo
cdl(){ cd "$@" && ls; }
vf(){
command vifm "$@"
if [ -f /tmp/lastdir ]; then
cd `cat /tmp/lastdir`
fi
}
export PYTHONSTARTUP=~/.pythonrc
export GOPATH=$HOME/go
export PATH=$PATH:~/.config/scripts/:~/.local/bin:$GOPATH/bin:~/.gem/ruby/2.4.0/bin:~/.cabal/bin/
export _JAVA_AWT_WM_NONREPARENTING=1
stty -ixon
set -o vi
PS1temp=$'┌\[\u@\h \w\]'
divider(){
promptlen=$(printf '%s\n' "${PS1temp@P}" | wc -m)
eval printf %.0s─ {1..$(($(tput cols) - $promptlen))}\}
}
export PS1=$'┌\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 4)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 3)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 1)\]] \[\e[0m\\]`divider`\n → \$ '
HISTCONTROL=ignoreboth
(cat ~/.cache/wal/sequences &)