mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-11 12:15:47 +00:00
Add environment, time style and ls aliases.
This commit is contained in:
parent
79f154f5fa
commit
c5a2b3c35b
3 changed files with 23 additions and 0 deletions
11
etc/profile.d/z-aliases.sh
Executable file
11
etc/profile.d/z-aliases.sh
Executable 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
10
etc/profile.d/z-env.sh
Executable 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
2
etc/profile.d/z-time_style.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
TIME_STYLE=long-iso
|
||||||
|
export TIME_STYLE
|
||||||
Loading…
Add table
Add a link
Reference in a new issue