bashrc & zshrc: add / after directories in ls on OS X.

This commit is contained in:
Mikaela Suomalainen 2014-05-01 15:06:44 +03:00
parent 652437282d
commit 5fa0f73979
3 changed files with 13 additions and 9 deletions

4
bashrc
View File

@ -116,8 +116,8 @@ if [[ $UNAME != Darwin ]]; then
fi
if [[ $UNAME = Darwin ]]; then
alias ll="ls -alFH"
alias l="ls -CF"
alias ll="ls -alFHGp"
alias l="ls -CFGp"
fi
# Add an "alert" alias for long running commands. Use like so:

14
chmod
View File

@ -9,6 +9,8 @@ GROUP=`id -gn`
wwwdata=`head -n1 wwwuser`
setfacl=`locate setfacl|grep bin|head -n1`
echo "Denying Reading, Writing and eXecuting from other users in"
echo "your home directory $HOME ."
echo ""
@ -44,16 +46,18 @@ echo ""
chmod a+r-wx,u+rw ~/.face
chmod a+r-wx,u+rw ~/.forward
echo "Setting access lists. This requires package acl to be installed"
echo "and kernel support for it and mount point being mounted with option"
echo "acl"
echo ""
if [[ -f $setfacl ]]; then
echo "Setting access lists. This requires package acl to be installed"
echo "and kernel support for it and mount point being mounted with option"
echo "acl"
echo ""
setfacl -R -m u:$wwwdata:rwx ~/public_html
setfacl -R -m d:u:$wwwdata:rwx ~/public_html
fi
if [ -f chmod.2 ]; then
./chmod.2
fi
fi
echo "Everything is now done :)"

4
zshrc
View File

@ -310,8 +310,8 @@ if [[ "$UNAME" != "Darwin" ]]; then
fi
if [[ $UNAME = Darwin ]]; then
alias ll="ls -alFH"
alias l="ls -CF"
alias ll="ls -alFHGp"
alias l="ls -CFGp"
fi
# Add an "alert" alias for long running commands. Use like so: