diff --git a/bsd/etc/fish/conf.d/ls.fish b/bsd/etc/fish/conf.d/ls.fish new file mode 100644 index 0000000..69775a2 --- /dev/null +++ b/bsd/etc/fish/conf.d/ls.fish @@ -0,0 +1,4 @@ +alias ll 'ls -lhTF' +alias la 'ls -lhTFA' +alias lal 'ls -lhTFa' +alias ldl 'ls -lhTFd' diff --git a/common/etc/fish/config.fish b/common/etc/fish/config.fish index 3585018..5b83356 100644 --- a/common/etc/fish/config.fish +++ b/common/etc/fish/config.fish @@ -4,10 +4,5 @@ set fish_prompt_pwd_dir_length 2 alias c 'clear' -alias ll 'ls -lhTF' -alias la 'ls -lhTFA' -alias lal 'ls -lhTFa' -alias ldl 'ls -lhTFd' - alias df 'df -h' alias du 'du -h' diff --git a/files.sh b/files.sh index 098725c..03b82ec 100644 --- a/files.sh +++ b/files.sh @@ -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/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 echo install_file gentoo root root 644 '/etc/dracut.conf' diff --git a/gnu/etc/fish/conf.d/ls.fish b/gnu/etc/fish/conf.d/ls.fish new file mode 100644 index 0000000..25a59c6 --- /dev/null +++ b/gnu/etc/fish/conf.d/ls.fish @@ -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'"