mirror of
https://github.com/Matir/skel.git
synced 2026-06-10 11:13:40 -07:00
Update skel, common functions.
This commit is contained in:
@@ -59,6 +59,8 @@ DIRSTACKSIZE=16
|
||||
|
||||
export OS="$(uname 2>/dev/null || echo "Unknown")"
|
||||
|
||||
source ~/.commonrc.sh
|
||||
|
||||
# Set terminal title
|
||||
case $TERM in
|
||||
# Only set the title for terminals that are likely to support it
|
||||
@@ -163,25 +165,6 @@ bindkey '^r' history-incremental-search-backward
|
||||
# delete really deletes
|
||||
bindkey "^[[3~" delete-char
|
||||
|
||||
source_if_existing() {
|
||||
[[ -f "${1}" ]] && source "${1}"
|
||||
}
|
||||
|
||||
source_first_existing() {
|
||||
while (($#)); do
|
||||
if test -e "${1}" ; then
|
||||
source "${1}"
|
||||
return
|
||||
fi
|
||||
shift
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
have_command() {
|
||||
command -v "${1}" &>/dev/null
|
||||
}
|
||||
|
||||
if test -d ${HOME}/.local/bin ; then
|
||||
export PATH="${HOME}/.local/bin:${PATH}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user