Add environment, time style and ls aliases.

This commit is contained in:
Doncho N. Gunchev 2024-02-13 17:43:44 +02:00
parent 79f154f5fa
commit c5a2b3c35b
Signed by: dgunchev
GPG key ID: D30FD19F37E002A9
3 changed files with 23 additions and 0 deletions

11
etc/profile.d/z-aliases.sh Executable file
View file

@ -0,0 +1,11 @@
# show hidden files and directories
alias l.='ls -d .[^.]* ..?* --color=tty 2>/dev/null'
# long format with ISO dates
alias lll='ls -Al "--time-style=+%Y-%m-%d %H:%M:%S %4Z"'
# color less (restricted)
alias less='less -R'
# color ip route
alias ip='ip --color=auto'

10
etc/profile.d/z-env.sh Executable file
View file

@ -0,0 +1,10 @@
EDITOR=mcedit
export EDITOR
HISTSIZE=20480
export HISTSIZE
if [ -x /usr/bin/fzf ]; then
FZF_DEFAULT_OPTS="--history-size=$HISTSIZE"
export FZF_DEFAULT_OPTS
fi

2
etc/profile.d/z-time_style.sh Executable file
View file

@ -0,0 +1,2 @@
TIME_STYLE=long-iso
export TIME_STYLE