-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
27 lines (22 loc) · 701 Bytes
/
bashrc
File metadata and controls
27 lines (22 loc) · 701 Bytes
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
# bash-preexec is installed alongside bashrc
. ~/.bashrc.d/bash-preexec.sh
. ~/.bashrc.d/ps1
# Redefine bash-preexec's function that purges HISTCONTROL. According to
# https://github.com/rcaloras/bash-preexec/issues/48, it's safe to do so.
__bp_adjust_histcontrol() { :; }
# Setup C-z to toggle fg/bg
preexec() { stty susp '^Z'; }
precmd() { stty susp undef; export PS1=$(update_ps1); }
on_ctrl_z() {
[[ -z $(jobs) ]] && return
fg
}
bind '"\C-z":"\C-u on_ctrl_z\n"'
export EDITOR=vim
export HISTCONTROL=ignorespace
export HISTSIZE=10000
export HISTFILESIZE=10000
export PATH="$HOME/.local/bin:$PATH"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias pacman='pacman --color=auto'