mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +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:
|
||||
|
4
chmod
4
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,6 +46,7 @@ echo ""
|
||||
chmod a+r-wx,u+rw ~/.face
|
||||
chmod a+r-wx,u+rw ~/.forward
|
||||
|
||||
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"
|
||||
@ -51,6 +54,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user