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 fi
if [[ $UNAME = Darwin ]]; then if [[ $UNAME = Darwin ]]; then
alias ll="ls -alFH" alias ll="ls -alFHGp"
alias l="ls -CF" alias l="ls -CFGp"
fi fi
# Add an "alert" alias for long running commands. Use like so: # 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` wwwdata=`head -n1 wwwuser`
setfacl=`locate setfacl|grep bin|head -n1`
echo "Denying Reading, Writing and eXecuting from other users in" echo "Denying Reading, Writing and eXecuting from other users in"
echo "your home directory $HOME ." echo "your home directory $HOME ."
echo "" echo ""
@ -44,16 +46,18 @@ echo ""
chmod a+r-wx,u+rw ~/.face chmod a+r-wx,u+rw ~/.face
chmod a+r-wx,u+rw ~/.forward chmod a+r-wx,u+rw ~/.forward
echo "Setting access lists. This requires package acl to be installed" if [[ -f $setfacl ]]; then
echo "and kernel support for it and mount point being mounted with option" echo "Setting access lists. This requires package acl to be installed"
echo "acl" echo "and kernel support for it and mount point being mounted with option"
echo "" echo "acl"
echo ""
setfacl -R -m u:$wwwdata:rwx ~/public_html setfacl -R -m u:$wwwdata:rwx ~/public_html
setfacl -R -m d:u:$wwwdata:rwx ~/public_html setfacl -R -m d:u:$wwwdata:rwx ~/public_html
fi
if [ -f chmod.2 ]; then if [ -f chmod.2 ]; then
./chmod.2 ./chmod.2
fi fi
echo "Everything is now done :)" echo "Everything is now done :)"

4
zshrc
View File

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