1
0
Fork 0

fish: aliases for GNU and *BSD

This commit is contained in:
Alex Kotov 2024-11-02 08:18:12 +04:00
parent 4f440d64e1
commit 873d34e61d
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 18 additions and 5 deletions

View file

@ -0,0 +1,4 @@
alias ll 'ls -lhTF'
alias la 'ls -lhTFA'
alias lal 'ls -lhTFa'
alias ldl 'ls -lhTFd'

View file

@ -4,10 +4,5 @@ set fish_prompt_pwd_dir_length 2
alias c 'clear' alias c 'clear'
alias ll 'ls -lhTF'
alias la 'ls -lhTFA'
alias lal 'ls -lhTFa'
alias ldl 'ls -lhTFd'
alias df 'df -h' alias df 'df -h'
alias du 'du -h' alias du 'du -h'

View file

@ -19,6 +19,16 @@ install_file common root $ROOTWHEEL 644 '/etc/fish/functions/fish_prompt.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/functions/prompt_user_host.fish' install_file common root $ROOTWHEEL 644 '/etc/fish/functions/prompt_user_host.fish'
install_file common root $ROOTWHEEL 644 '/etc/fish/functions/rvm.fish' install_file common root $ROOTWHEEL 644 '/etc/fish/functions/rvm.fish'
# GNU
if [ "$PREFIX" = 'gentoo' ]; then
install_file gnu root root 644 '/etc/fish/conf.d/ls.fish'
fi
# *BSD
if [ "$PREFIX" = 'openbsd' ]; then
install_file bsd root $ROOTWHEEL 644 '/etc/fish/conf.d/ls.fish'
fi
if [ "$PREFIX" = 'gentoo' ]; then if [ "$PREFIX" = 'gentoo' ]; then
echo echo
install_file gentoo root root 644 '/etc/dracut.conf' install_file gentoo root root 644 '/etc/dracut.conf'

View file

@ -0,0 +1,4 @@
alias ll "ls -lhF --time-style=+'%F %T'"
alias la "ls -lhFA --time-style=+'%F %T'"
alias lal "ls -lhFa --time-style=+'%F %T'"
alias ldl "ls -lhFd --time-style=+'%F %T'"