blob: 85c6dc2cccc3e7c3aafe8e9206ff4853ea4b341c (
plain)
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
|
#!/usr/bin/bash
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
. /usr/share/git/git-prompt.sh
. /etc/profile.d/lfcd.sh
. /usr/share/bash-completion/bash_completion
mkcd(){
mkdir -p $1 && cd $1
}
venv(){
[ -f .venv/bin/activate ] || { echo "could not find .venv" >&2; return 1; }
. .venv/bin/activate
}
PS1='\[\033[32m\]\h\[\033[0m\]:\[\033[33m\]\w\[\033[0m\]$(__git_ps1 ":\[\033[31m\]%s\[\033[0m\]")\$ '
export EDITOR=vis
export GOPATH="$HOME/.local/go"
export MANPAGER="less -R --use-color -Du+c"
export LESSHISTFILE="/dev/null"
export HISTSIZE=5000
export HISTFILESIZE=5000
export HISTCONTROL=ignorespace:ignoredups
alias lfc='lfcd'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias ip='ip -color=auto'
alias ?='echo $?'
bind '"":" lfc\n"'
bind -x '"
":"setsid st >/dev/null 2>&1"'
|