-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
41 lines (29 loc) · 974 Bytes
/
Copy path.bashrc
File metadata and controls
41 lines (29 loc) · 974 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
[[ $- != *i* ]] && return
_set_my_PS1() {
PS1='[\u@\h \W]\$ '
}
_set_my_PS1
unset -f _set_my_PS1
complete -cf doas
export HISTFILE="$XDG_STATE_HOME"/bash/history
export EDITOR=nvim
export VISUAL=nvim
alias ls='exa -l --color=auto --icons --group-directories-first'
alias ll='ls -a --no-user'
alias v="nvim"
alias se="sudoedit"
# Expand the history size
export HISTFILESIZE=10000
export HISTSIZE=1000
export HISTCONTROL=ignoredups:erasedups:ignorespace
shopt -s checkwinsize
shopt -s histappend
shopt -s autocd dirspell interactive_comments
shopt -s globstar extglob dotglob
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# [ -f /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
[ -f /etc/bash_completion ] && . /etc/bash_completion
[[ "$(whoami)" = "root" ]] && return
[[ -z "$FUNCNEST" ]] && export FUNCNEST=100
source "$HOME"/Documents/dotfiles/.config/zsh/alias.zsh