Colorful ls on FreeBSD
This commit is contained in:
parent
b11202a67e
commit
4a72ec1c69
3 changed files with 14 additions and 1 deletions
2
.bashrc
2
.bashrc
|
|
@ -15,6 +15,8 @@ command -v uname >/dev/null &&
|
|||
FreeBSD)
|
||||
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] \
|
||||
&& . /usr/local/share/bash-completion/bash_completion.sh
|
||||
|
||||
. "$HOME/.bashrc.freebsd"
|
||||
;;
|
||||
esac \
|
||||
;
|
||||
|
|
|
|||
7
.bashrc.freebsd
Normal file
7
.bashrc.freebsd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$PS1" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
alias ls='ls -G'
|
||||
|
|
@ -13,7 +13,8 @@ ifeq ($(UNAME),Darwin)
|
|||
INSTALL = ginstall
|
||||
OPEN = open
|
||||
else ifeq ($(UNAME),FreeBSD)
|
||||
DEFAULT_TARGETS += $(HOME)/.bashrc
|
||||
DEFAULT_TARGETS += $(HOME)/.bashrc \
|
||||
$(HOME)/.bashrc.freebsd
|
||||
PROFILE = .profile
|
||||
INSTALL = ginstall
|
||||
OPEN = xdg-open
|
||||
|
|
@ -45,6 +46,9 @@ $(HOME)/.profile: $(PROFILE)
|
|||
$(HOME)/.bashrc: .bashrc
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.bashrc.freebsd: .bashrc.freebsd
|
||||
cp $< $@
|
||||
|
||||
/opt/local/etc/bashrc: .bashrc
|
||||
sudo cp $< $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue