-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.sh
More file actions
39 lines (32 loc) · 1016 Bytes
/
settings.sh
File metadata and controls
39 lines (32 loc) · 1016 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
prohibit-subshells
# Better history management, from http://unix.stackexchange.com/a/48113/134011
HISTCONTROL=ignoreboth:erasedups # Erase duplicates when writing the history file
HISTSIZE=100000000000 # Size of history in memory
HISTFILESIZE=100000000000 # Size of history file
shopt -s histappend # Append to history, don't overwrite it
HISTTIMEFORMAT="%F %T "
export EDITOR=edit
export VISUAL=edit
# Enable ls colors
export CLICOLOR=1
# Improve ls colors
export LSCOLORS=ExFxBxDxCxegedabagacad
export LESS="\
--chop-long-lines \
--HILITE-UNREAD \
--ignore-case \
--LONG-PROMPT \
--RAW-CONTROL-CHARS \
"
# TODO:
#
# --quit-if-one-screen \
# --no-init \
#
# The second disables mouse scrolling.
# The first without the second outputs nothing if the file fits on one page.
# TODO: use `most`?
# TODO: Use XDG config? (Does enough stuff actually support it?)
# # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
# export XDG_CONFIG_HOME="$HOME/.config"
# export XDG_CACHE_HOME=