blob: 335fce668604f9e36e58471f30764c2c001d606c (
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
|
# shellcheck shell=bash
[[ $- != *i* ]] && return
__has() { hash "$1" 2>/dev/null; }
HISTSIZE=
HISTCONTROL="erasedups:ignorespace"
HISTFILE="$XDG_STATE_HOME/bash/history"
PS1='\u@\h:\w\$ '
alias g='git'
alias t='tmux'
__has nvim && alias vim='nvim'
__has vim && alias vi='vim'
alias doas='doas '
alias sudo='sudo '
alias ls='ls --color=auto -AF'
alias grep='grep --color=auto'
[[ ! -d "$(dirname "$HISTFILE")" ]] && mkdir -p "$(dirname "$HISTFILE")"
unset __has
|