Commit 1062d742 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

bash_completion

parent df30ce82
Loading
Loading
Loading
Loading

.bash_completion

0 → 100644
+15 −0
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"

# 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"
  for i in $HOME/.bash_completion.d/*; do
    if [ -r "$i" ]; then
      . "$i"
    fi
  done
  unset i
fi
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ chmod -c a-wx,og-r,u+r "$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"
  for i in $HOME/.bash_logout.d/*.sh; do
  for i in $HOME/.bash_logout.d/*; do
    if [ -r "$i" ]; then
      . "$i"
    fi
+2 −2
Original line number Diff line number Diff line
@@ -14,9 +14,9 @@ chmod -c a-wx,og-r,u+r "$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"
  for i in $HOME/.bashrc.d/*.sh; do
  for i in $HOME/.bashrc.d/*; do
    if [ -r "$i" ]; then
      source "$i"
      . "$i"
    fi
  done
  unset i
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ chmod -c a-wx,og-r,u+r "$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"
  for i in $HOME/.profile.d/*.sh; do
  for i in $HOME/.profile.d/*; do
    if [ -r "$i" ]; then
      . "$i"
    fi