Commit e29ad9ef authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

rw files

parent fec3b30d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
# ~/.bash_completion: user's completion snippets

# Protect user's bash_logout code file from changes and views
chmod -c a-wx,og-r,u+r "$HOME/.bash_completion"
# Protect user's bash_logout code file from others
chmod og-rwx,u+rwX "$HOME/.bash_completion"

# Source user's private bash completion code snippets if they exist
if [ -d "$HOME/.bash_completion.d" ]; then
  chmod -Rc og-rwx,u+rwX "$HOME/.bash_completion.d"
  chmod -R og-rwx,u+rwX "$HOME/.bash_completion.d"
  for i in $HOME/.bash_completion.d/*; do
    if [ -r "$i" ]; then
      . "$i"
+3 −3
Original line number Diff line number Diff line
# ~/.bash_logout: executed by bash(1) when login shell exits.

# Protect user's bash_logout code file from changes and views
chmod -c a-wx,og-r,u+r "$HOME/.bash_logout"
# Protect user's bash_logout code file from others
chmod og-rwx,u+rwX "$HOME/.bash_logout"

# Source user's private bashrc code snippets if they exist
if [ -d "$HOME/.bash_logout.d" ]; then
  chmod -Rc og-rwx,u+rwX "$HOME/.bash_logout.d"
  chmod -R og-rwx,u+rwX "$HOME/.bash_logout.d"
  for i in $HOME/.bash_logout.d/*; do
    if [ -r "$i" ]; then
      . "$i"
+3 −3
Original line number Diff line number Diff line
@@ -8,12 +8,12 @@ case $- in
      *) return;;
esac

# Protect user's bashrc code file from changes and views
chmod -c a-wx,og-r,u+r "$HOME/.bashrc"
# Protect user's bashrc code file from others
chmod og-rwx,u+rwX "$HOME/.bashrc"

# Source user's private bashrc code snippets if they exist
if [ -d "$HOME/.bashrc.d" ]; then
  chmod -Rc og-rwx,u+rwX "$HOME/.bashrc.d"
  chmod -R og-rwx,u+rwX "$HOME/.bashrc.d"
  for i in $HOME/.bashrc.d/*; do
    if [ -r "$i" ]; then
      . "$i"
+3 −3
Original line number Diff line number Diff line
@@ -4,12 +4,12 @@
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# Protect user's profile code file from changes and views
chmod -c a-wx,og-r,u+r "$HOME/.profile"
# Protect user's profile code file from others
chmod og-rwx,u+rwX "$HOME/.profile"

# Source user's private profile code snippets if they exist
if [ -d "$HOME/.profile.d" ]; then
  chmod -Rc og-rwx,u+rwX "$HOME/.profile.d"
  chmod -R og-rwx,u+rwX "$HOME/.profile.d"
  for i in $HOME/.profile.d/*; do
    if [ -r "$i" ]; then
      . "$i"