mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
bashrc & zshrc: add / after directories in ls on OS X.
This commit is contained in:
parent
652437282d
commit
5fa0f73979
4
bashrc
4
bashrc
@ -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
14
chmod
@ -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 :)"
|
||||
|
Loading…
Reference in New Issue
Block a user