Skip to content

Commit

Permalink
cleanup unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodonato committed Feb 3, 2024
1 parent 1bf2fbc commit 091e00a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
41 changes: 0 additions & 41 deletions lib/misc.sh

This file was deleted.

16 changes: 16 additions & 0 deletions rc.d/210-source.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Helper to source global definition files.

# Source a system file. If no filename is given, list the available names.
s() {
local sourcedir="$SYSTEM_DIR/source"
if [ $# -eq 0 ]; then
ls -1 "$sourcedir"
return
fi

local file
for file in "$@"; do
# shellcheck disable=SC1090
. "$sourcedir/$file"
done
}
4 changes: 2 additions & 2 deletions rc.d/300-completion.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Autocompletion configuration


if is_interactive; then
# only load completion for interactive shells
if [[ $- == *i* ]]; then
source_if_exists /etc/bash_completion

_bcomp_s() {
Expand Down

0 comments on commit 091e00a

Please sign in to comment.