diff options
author | frosty <passedgoandgot200@disroot.org> | 2025-07-04 07:02:58 -0400 |
---|---|---|
committer | frosty <passedgoandgot200@disroot.org> | 2025-07-04 07:02:58 -0400 |
commit | 662ef16a7b28e939ace1b8d62ca9041921f06ea2 (patch) | |
tree | d9a9a4739f649cb8a74ddadf4ee7a9ddd941c312 /.bashrc | |
download | dotfiles-662ef16a7b28e939ace1b8d62ca9041921f06ea2.tar.gz dotfiles-662ef16a7b28e939ace1b8d62ca9041921f06ea2.zip |
add bash
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,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 |