-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
37 lines (33 loc) · 1.04 KB
/
.bashrc
File metadata and controls
37 lines (33 loc) · 1.04 KB
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
# shellcheck shell=bash
eval "$(/opt/homebrew/bin/brew shellenv)"
# shellcheck disable=SC2148
# Prevent file overwrite on stdout redirection
# Use `>|` to force redirection to an existing file
set -o noclobber
# Update window size after every command
shopt -s checkwinsize
# Append to the history file, don't overwrite it
shopt -s histappend
# Save multi-line commands as one command
shopt -s cmdhist
# Correct spelling errors in arguments supplied to cd
shopt -s cdspell
# Record each line as it gets issued
PROMPT_COMMAND='history -a'
# Huge history
HISTSIZE=500000
HISTFILESIZE=100000
# Avoid duplicate entries
HISTCONTROL="erasedups:ignoreboth"
# Use standard ISO 8601 timestamp
# %F equivalent to %Y-%m-%d
# %T equivalent to %H:%M:%S (24-hours format)
HISTTIMEFORMAT='%F %T '
# Move history out of the way
HISTFILE=$HOME/.local/share/bash/history
alias ls='eza --icons=auto --group-directories-first'
eval "$(starship init bash)"
# Local environment variables
set -a
[[ -f $HOME/.config/environment.local ]] && source "$HOME/.config/environment.local"
set +a