fish: aliases for GNU and *BSD
This commit is contained in:
parent
4f440d64e1
commit
873d34e61d
4 changed files with 18 additions and 5 deletions
4
bsd/etc/fish/conf.d/ls.fish
Normal file
4
bsd/etc/fish/conf.d/ls.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
alias ll 'ls -lhTF'
|
||||||
|
alias la 'ls -lhTFA'
|
||||||
|
alias lal 'ls -lhTFa'
|
||||||
|
alias ldl 'ls -lhTFd'
|
|
@ -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'
|
||||||
|
|
10
files.sh
10
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/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'
|
||||||
|
|
4
gnu/etc/fish/conf.d/ls.fish
Normal file
4
gnu/etc/fish/conf.d/ls.fish
Normal 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'"
|
Loading…
Reference in a new issue