diff --git a/_helpers.bash b/_helpers.bash index b3f8e8b..acf72e5 100644 --- a/_helpers.bash +++ b/_helpers.bash @@ -1,5 +1,3 @@ -#!/bin/bash - function basedir() { (cd "$(dirname \"$-2\")" && pwd) } diff --git a/aliases.d/bat b/aliases.d/bat index d285751..bab5c77 100644 --- a/aliases.d/bat +++ b/aliases.d/bat @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v bat &>/dev/null); then alias cat=bat fi diff --git a/aliases.d/colordiff b/aliases.d/colordiff index aa0d214..989b574 100644 --- a/aliases.d/colordiff +++ b/aliases.d/colordiff @@ -1,5 +1,3 @@ -#!/bin/bash - if (which colordiff &> /dev/null) then alias diff=colordiff diff --git a/aliases.d/colors b/aliases.d/colors index e0d5739..671411c 100644 --- a/aliases.d/colors +++ b/aliases.d/colors @@ -1,5 +1,3 @@ -#!/bin/bash - # Colors alias ls='ls --color=auto' alias grep='grep --color=auto' diff --git a/aliases.d/fun b/aliases.d/fun index b0c29e6..8bd2edb 100644 --- a/aliases.d/fun +++ b/aliases.d/fun @@ -1,5 +1,3 @@ -#!/bin/bash - # Fun alias matrix='tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"' diff --git a/aliases.d/generic b/aliases.d/generic index 9d8fa1d..497fbb1 100644 --- a/aliases.d/generic +++ b/aliases.d/generic @@ -1,5 +1,3 @@ -#!/bin/bash - # Cd alias cdup='cd ..' diff --git a/aliases.d/git b/aliases.d/git index 042934a..d306be0 100644 --- a/aliases.d/git +++ b/aliases.d/git @@ -1,5 +1,3 @@ -#!/bin/bash - # Git if [ -x /usr/bin/git ]; then alias gs='git status' diff --git a/aliases.d/gopass b/aliases.d/gopass index 1765cb3..7c9f8a1 100644 --- a/aliases.d/gopass +++ b/aliases.d/gopass @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v 'gopass' && ! command -v pass ) &> /dev/null then alias pass='gopass' diff --git a/aliases.d/kitty b/aliases.d/kitty index 844f3ea..4914726 100644 --- a/aliases.d/kitty +++ b/aliases.d/kitty @@ -1,5 +1,3 @@ -#!/bin/bash - # [ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh" if [ -n "${KITTY_INSTALLATION_DIR}" ]; then alias ssh="kitty +kitten ssh" diff --git a/aliases.d/kubectl b/aliases.d/kubectl index 82a301e..9d0bae3 100644 --- a/aliases.d/kubectl +++ b/aliases.d/kubectl @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v kubectl &>/dev/null); then # create some usefull aliases diff --git a/aliases.d/lsd b/aliases.d/lsd index e614253..ba31bf3 100644 --- a/aliases.d/lsd +++ b/aliases.d/lsd @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v lsd &> /dev/null) then alias ls='lsd' diff --git a/aliases.d/mc b/aliases.d/mc index 6f6b7c8..e83d552 100644 --- a/aliases.d/mc +++ b/aliases.d/mc @@ -1,5 +1,3 @@ -#!/bin/bash - if (which mc &> /dev/null); then if [ "$TERM" = "rxvt-unicode" ]; then alias mc="TERM=rxvt-unicode-256color mc" diff --git a/aliases.d/nvim b/aliases.d/nvim index 1696caf..c9057bc 100644 --- a/aliases.d/nvim +++ b/aliases.d/nvim @@ -1,5 +1,3 @@ -#!/bin/bash - # Vim Editor if [ -x ~/AppImages/nvim.appimage ] then diff --git a/aliases.d/openvswitch b/aliases.d/openvswitch index ffd8c7e..569ed7f 100644 --- a/aliases.d/openvswitch +++ b/aliases.d/openvswitch @@ -1,5 +1,3 @@ -#!/bin/bash - if (which ovs-appctl &> /dev/null); then alias appctl='sudo ovs-appctl'; fi if (which ovs-vsctl &> /dev/null); then alias vsctl='sudo ovs-vsctl'; fi if (which ovs-ofctl &> /dev/null); then alias ofctl='sudo ovs-ofctl'; fi diff --git a/aliases.d/power b/aliases.d/power index 2bb0f61..1d4ebae 100644 --- a/aliases.d/power +++ b/aliases.d/power @@ -1,5 +1,3 @@ -#!/bin/bash - # Power alias reboot='sudo reboot' alias halt='sudo halt' diff --git a/aliases.d/security b/aliases.d/security index 0ca8e2d..80b7ff0 100644 --- a/aliases.d/security +++ b/aliases.d/security @@ -1,5 +1,3 @@ -#!/bin/bash - # Security alias rm='rm -i' alias mv='mv -i' diff --git a/aliases.d/ssh b/aliases.d/ssh index 5b3ec47..b9231ee 100644 --- a/aliases.d/ssh +++ b/aliases.d/ssh @@ -1,4 +1,2 @@ -#!/bin/bash - # SSH alias ssh!='ssh -q -oStrictHostKeyChecking=no -oIdentitiesOnly=yes' diff --git a/aliases.d/system b/aliases.d/system index a9ff1c2..3d854e3 100644 --- a/aliases.d/system +++ b/aliases.d/system @@ -1,5 +1,3 @@ -#!/bin/bash - # System tools if [ -f /sbin/ifconfig ] && [ -x /sbin/ifconfig ]; then alias ifconfig='/sbin/ifconfig'; fi if [ -f /sbin/ip ] && [ -x /sbin/ip ]; then alias ip='/sbin/ip'; fi diff --git a/aliases.d/tree b/aliases.d/tree index d107eda..c310fb0 100644 --- a/aliases.d/tree +++ b/aliases.d/tree @@ -1,3 +1 @@ -#!/bin/bash - alias tree='tree -A -C' diff --git a/aliases.d/vim b/aliases.d/vim index 772a153..c5c1d9a 100644 --- a/aliases.d/vim +++ b/aliases.d/vim @@ -1,5 +1,3 @@ -#!/bin/bash - # Vim Editor if (command -v nvim &> /dev/null) then diff --git a/aliases.d/zfs b/aliases.d/zfs index 098e855..b283634 100644 --- a/aliases.d/zfs +++ b/aliases.d/zfs @@ -1,4 +1,2 @@ -#!/bin/bash - if (which zfs &> /dev/null); then alias zfs='sudo zfs'; fi if (which zpool &> /dev/null); then alias zpool='sudo zpool'; fi diff --git a/bash_profile b/bash_profile index 39f1384..2dd3d51 100644 --- a/bash_profile +++ b/bash_profile @@ -1,5 +1,3 @@ -#!/bin/bash - if [ -f "${HOME}"/.nix-profile/etc/profile.d/hm-session-vars.sh ]; then source "${HOME}"/.nix-profile/etc/profile.d/hm-session-vars.sh fi diff --git a/completion.d/aws b/completion.d/aws index 6fd4c32..02a9557 100644 --- a/completion.d/aws +++ b/completion.d/aws @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v aws && command -v aws_completer) &>/dev/null; then complete -C aws_completer aws fi diff --git a/completion.d/chezmoi b/completion.d/chezmoi index acfd0bc..6afc737 100644 --- a/completion.d/chezmoi +++ b/completion.d/chezmoi @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v chezmoi &>/dev/null); then source <(chezmoi completion bash) fi diff --git a/completion.d/flux b/completion.d/flux index a8f4dde..c1e9cc8 100644 --- a/completion.d/flux +++ b/completion.d/flux @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v flux &>/dev/null); then source <(flux completion bash) fi diff --git a/completion.d/glab b/completion.d/glab index 065cc60..3f5be3d 100644 --- a/completion.d/glab +++ b/completion.d/glab @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v glab &>/dev/null); then source <(glab completion) fi diff --git a/completion.d/helm b/completion.d/helm index fb0b30f..56cc855 100644 --- a/completion.d/helm +++ b/completion.d/helm @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v helm &> /dev/null) then source <( helm completion bash ) diff --git a/completion.d/k3d b/completion.d/k3d index 2d10616..61e606b 100644 --- a/completion.d/k3d +++ b/completion.d/k3d @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v k3d &>/dev/null); then source <(k3d completion bash) fi diff --git a/completion.d/kind b/completion.d/kind index 84e94e5..29e919b 100644 --- a/completion.d/kind +++ b/completion.d/kind @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v kind &>/dev/null); then source <(kind completion bash) fi diff --git a/completion.d/kubectl b/completion.d/kubectl index 117399e..5c5e277 100644 --- a/completion.d/kubectl +++ b/completion.d/kubectl @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v kubectl &> /dev/null) then source <(kubectl completion bash) diff --git a/completion.d/minikube b/completion.d/minikube index ff4ed7c..afdab95 100644 --- a/completion.d/minikube +++ b/completion.d/minikube @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v minikube &>/dev/null); then source <(minikube completion bash) fi diff --git a/completion.d/mise b/completion.d/mise index a51c4fa..93344fb 100644 --- a/completion.d/mise +++ b/completion.d/mise @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v mise &>/dev/null); then source <(mise completion bash --include-bash-completion-lib) fi diff --git a/completion.d/podman b/completion.d/podman index e4f61bb..9e25c67 100644 --- a/completion.d/podman +++ b/completion.d/podman @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v podman &>/dev/null); then source <(podman completion bash) fi diff --git a/completion.d/poetry b/completion.d/poetry index bbae3eb..93309e9 100644 --- a/completion.d/poetry +++ b/completion.d/poetry @@ -1,5 +1,3 @@ -#!/bin/bash - if ( command -v poetry &> /dev/null ) then source <(poetry completions bash) diff --git a/completion.d/stern b/completion.d/stern index d736dfa..c705424 100644 --- a/completion.d/stern +++ b/completion.d/stern @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v stern &> /dev/null) then source <(stern --completion bash) diff --git a/completion.d/tea b/completion.d/tea index 017cb79..0666c99 100644 --- a/completion.d/tea +++ b/completion.d/tea @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v tea &>/dev/null); then source <(tea completion bash) fi diff --git a/functions.d/devenv b/functions.d/devenv index e93826d..d27615b 100644 --- a/functions.d/devenv +++ b/functions.d/devenv @@ -1,5 +1,3 @@ -#!/bin/bash - function devenv() { local status diff --git a/libs/colors.bash b/libs/colors.bash index a6f87ec..a2fa315 100755 --- a/libs/colors.bash +++ b/libs/colors.bash @@ -1,5 +1,3 @@ -#!/bin/bash - #ANSI CODES #Code Effect #0 All attributes off diff --git a/libs/ip.bash b/libs/ip.bash index 28513e2..e16f838 100644 --- a/libs/ip.bash +++ b/libs/ip.bash @@ -1,5 +1,3 @@ -#!/bin/bash - function ip_to_hex () { if test -e "$1" ; then echo "Usage : $0 XXX.XXX.XXX.XXX" ; return ; fi diff --git a/libs/note.bash b/libs/note.bash index 49bc104..7739108 100644 --- a/libs/note.bash +++ b/libs/note.bash @@ -1,5 +1,3 @@ -#!/bin/bash - note() { # if file doesn't exist, create it if [[ ! -f $HOME/.notes ]]; then diff --git a/libs/password.bash b/libs/password.bash index cf636a7..b10f857 100755 --- a/libs/password.bash +++ b/libs/password.bash @@ -1,5 +1,3 @@ -#!/bin/bash - encpasswd() { local password_clear=$1 local password_md5hash=$(openssl passwd -1 "$password_clear") diff --git a/libs/ssh.bash b/libs/ssh.bash index 3979cca..f2e3133 100644 --- a/libs/ssh.bash +++ b/libs/ssh.bash @@ -1,5 +1,3 @@ -#!/bin/bash - function ssh_clean_known_hosts() { if [ -z "$1" ]; then echo "No arguments given. Cleaning ~/.ssh/known_hosts" diff --git a/libs/term.bash b/libs/term.bash index e1b183f..cc2c500 100755 --- a/libs/term.bash +++ b/libs/term.bash @@ -1,5 +1,3 @@ -#!/bin/bash - function term_change_title { case $TERM in # Change the window title of X terminals diff --git a/libs/todo.bash b/libs/todo.bash index abebf60..3a11be0 100644 --- a/libs/todo.bash +++ b/libs/todo.bash @@ -1,5 +1,3 @@ -#!/bin/bash - todo() { if [[ ! -f $HOME/.todo ]]; then touch $HOME/.todo diff --git a/libs/urxvt.bash b/libs/urxvt.bash index fd5f30e..9367746 100755 --- a/libs/urxvt.bash +++ b/libs/urxvt.bash @@ -1,5 +1,3 @@ -#!/bin/bash - function urxvt_set_font { # set font diff --git a/libs/xml.bash b/libs/xml.bash index c5e6e3c..e6389a2 100644 --- a/libs/xml.bash +++ b/libs/xml.bash @@ -1,4 +1,2 @@ -#!/bin/bash - function prettyxml () { sed -e 's,>,>\n,g'; } diff --git a/profile.d/anyenv b/profile.d/anyenv index ec4e7bd..481879a 100644 --- a/profile.d/anyenv +++ b/profile.d/anyenv @@ -1,5 +1,3 @@ -#!/bin/bash - # https://github.com/riywo/anyenv # git clone https://github.com/riywo/anyenv $HOME/.anyenv diff --git a/profile.d/history b/profile.d/history index 731148c..19f22d3 100644 --- a/profile.d/history +++ b/profile.d/history @@ -1,5 +1,3 @@ -#!/bin/bash - # Customize history format export HISTSIZE=5000 export HISTFILESIZE=20000 diff --git a/profile.d/keychain b/profile.d/keychain index 7e4bfa7..f795a65 100644 --- a/profile.d/keychain +++ b/profile.d/keychain @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v keychain &>/dev/null); then eval "$(keychain --inherit any --quiet --noask ~/.ssh/id_{rsa,ed25519})" fi diff --git a/profile.d/krew b/profile.d/krew index 35be151..05ffeac 100644 --- a/profile.d/krew +++ b/profile.d/krew @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v krew &>/dev/null); then export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" fi diff --git a/profile.d/lang b/profile.d/lang index 8989d67..6c46a0c 100644 --- a/profile.d/lang +++ b/profile.d/lang @@ -1,4 +1,2 @@ -#!/bin/bash - # Define prefered LANG export LANG=fr_FR.UTF-8 diff --git a/profile.d/mail b/profile.d/mail index 3692de2..85b3b70 100644 --- a/profile.d/mail +++ b/profile.d/mail @@ -1,4 +1,2 @@ -#!/bin/bash - # Mail export MAILPATH=~/Mails/ diff --git a/profile.d/path b/profile.d/path index 2613629..fa5f980 100644 --- a/profile.d/path +++ b/profile.d/path @@ -1,5 +1,3 @@ -#!/bin/bash - # Customize PATH if [ -d $HOME/.bin ] ; then export PATH=$PATH:$HOME/.bin ; fi if [ -d $HOME/.local/bin ] ; then export PATH=$PATH:$HOME/.local/bin ; fi diff --git a/profile.d/tsocks b/profile.d/tsocks index b4ef248..fcb5e73 100644 --- a/profile.d/tsocks +++ b/profile.d/tsocks @@ -1,5 +1,3 @@ -#!/bin/bash - # Proxy if [ -x /usr/bin/tsocks ] then diff --git a/rc.after.d/apps b/rc.after.d/apps index 3376aec..f1d07b9 100644 --- a/rc.after.d/apps +++ b/rc.after.d/apps @@ -1,5 +1,3 @@ -#!/bin/bash - # Defined prefered applications # EDITOR diff --git a/rc.after.d/blesh b/rc.after.d/blesh index f2a1b97..282264d 100644 --- a/rc.after.d/blesh +++ b/rc.after.d/blesh @@ -1,3 +1 @@ -#!/bin/bash - [[ ${BLE_VERSION-} ]] && ble-attach diff --git a/rc.before.d/blesh b/rc.before.d/blesh index 734f5dc..0c0df03 100644 --- a/rc.before.d/blesh +++ b/rc.before.d/blesh @@ -1,5 +1,3 @@ -#!/bin/bash - # ble.sh () installed from nix if (command -v blesh-share &>/dev/null); then source "$(blesh-share)"/ble.sh --attach=none # does not work currently diff --git a/rc.before.d/mise b/rc.before.d/mise index 811ec8d..7498eba 100644 --- a/rc.before.d/mise +++ b/rc.before.d/mise @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v mise &>/dev/null); then # activate mise-en-place (https://mise.jdx.dev/) diff --git a/rc.d/anyenv b/rc.d/anyenv index debc2c8..a6d52fe 100644 --- a/rc.d/anyenv +++ b/rc.d/anyenv @@ -1,5 +1,3 @@ -#!/bin/bash - # https://github.com/riywo/anyenv # git clone https://github.com/riywo/anyenv $HOME/.anyenv diff --git a/rc.d/asdf b/rc.d/asdf index 92d268f..d4a7fb6 100644 --- a/rc.d/asdf +++ b/rc.d/asdf @@ -1,5 +1,3 @@ -#!/bin/bash - if [ -f ~/.asdf/asdf.sh ]; then # activate asdf diff --git a/rc.d/broot b/rc.d/broot index 5ff0f1d..ce0550b 100644 --- a/rc.d/broot +++ b/rc.d/broot @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v broot &>/dev/null); then # This script was automatically generated by the broot program # More information can be found in https://github.com/Canop/broot diff --git a/rc.d/cgroups b/rc.d/cgroups index ea1f162..97c7155 100644 --- a/rc.d/cgroups +++ b/rc.d/cgroups @@ -1,5 +1,3 @@ -#!/bin/bash - # Use cgroups if [ "$PS1" ] ; then diff --git a/rc.d/colors b/rc.d/colors index 5d5fa7d..9437a24 100644 --- a/rc.d/colors +++ b/rc.d/colors @@ -1,5 +1,3 @@ -#!/bin/bash - # Enable colors for ls, etc. Prefer ~/.dir_colors #64489 if [[ -f ~/.dir_colors ]]; then eval `dircolors -b ~/.dir_colors` diff --git a/rc.d/direnv b/rc.d/direnv index 023376c..933b92f 100644 --- a/rc.d/direnv +++ b/rc.d/direnv @@ -1,5 +1,3 @@ -#!/bin/bash - if (asdf which direnv &>/dev/null); then # Hook direnv into your shell. eval "$(asdf exec direnv hook bash)" diff --git a/rc.d/fzf b/rc.d/fzf index 4d7276a..947b168 100644 --- a/rc.d/fzf +++ b/rc.d/fzf @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v fzf &>/dev/null); then # Shell integration diff --git a/rc.d/git b/rc.d/git index 72de9cb..2d6882a 100644 --- a/rc.d/git +++ b/rc.d/git @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v git && command -v fzf) &>/dev/null; then function gsb { git checkout "$(git branch --all | fzf | tr -d '[:space:]')"; } fi diff --git a/rc.d/history b/rc.d/history index be85be8..b6336b8 100644 --- a/rc.d/history +++ b/rc.d/history @@ -1,5 +1,3 @@ -#!/bin/bash - # Customize shell history search # Indicate your preference order for history tools diff --git a/rc.d/lsd b/rc.d/lsd index ac18fc7..6809d6f 100644 --- a/rc.d/lsd +++ b/rc.d/lsd @@ -1,5 +1,3 @@ -#!/bin/bash - if (which lsd &> /dev/null) then diff --git a/rc.d/prompt b/rc.d/prompt index 8460667..59e6685 100644 --- a/rc.d/prompt +++ b/rc.d/prompt @@ -1,5 +1,3 @@ -#!/bin/bash - # Customize the prompt # Indicate your preference order for prompt tools diff --git a/rc.d/rvm b/rc.d/rvm index 39439fc..e01ba86 100644 --- a/rc.d/rvm +++ b/rc.d/rvm @@ -1,5 +1,3 @@ -#!/bin/bash - # Load RVM into a shell session *as a function* [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" diff --git a/rc.d/screen b/rc.d/screen index 3b60f98..686a354 100644 --- a/rc.d/screen +++ b/rc.d/screen @@ -1,5 +1,3 @@ -#!/bin/bash - # GNU Screen stuff if ( which screen &> /dev/null ) then diff --git a/rc.d/terminal-title b/rc.d/terminal-title index f5d4d34..952fbd1 100644 --- a/rc.d/terminal-title +++ b/rc.d/terminal-title @@ -1,5 +1,3 @@ -#!/bin/bash - # Function to update terminal/tmux title _update_terminal_title() { local kubecontext dir gitrepo gitremote icon title diff --git a/rc.d/tmux b/rc.d/tmux index 9ee2ef6..9d73a85 100644 --- a/rc.d/tmux +++ b/rc.d/tmux @@ -1,5 +1,3 @@ -#!/bin/bash - # GNU Screen stuff if (command -v tmux &>/dev/null); then if [ "$(pgrep -u "$UID" "tmux" | wc -l)" -gt 0 ]; then diff --git a/rc.d/todo.txt b/rc.d/todo.txt index ee0e851..cc62cd5 100644 --- a/rc.d/todo.txt +++ b/rc.d/todo.txt @@ -1,5 +1,3 @@ -#!/bin/bash - if [ -f ~/software/todo.txt-cli/todo.sh ]; then export TODOTXT_DEFAULT_ACTION=ls diff --git a/rc.d/urxvt b/rc.d/urxvt index 85588db..ddb6ffb 100644 --- a/rc.d/urxvt +++ b/rc.d/urxvt @@ -1,4 +1,3 @@ -#!/bin/bash # #URXVT_FONT_NAME="DejaVu Sans Mono" #URXVT_FONT_SIZE=16 diff --git a/rc.d/vivid b/rc.d/vivid index 4965e2f..539ddd1 100644 --- a/rc.d/vivid +++ b/rc.d/vivid @@ -1,5 +1,3 @@ -#!/bin/bash - # INFO: #  vivid is a generator for the LS_COLORS environment variable that controls the colorized output of ls, tree, fd, bfs, dust and many other tools. # ➜ https://github.com/sharkdp/vivid diff --git a/rc.d/zoxide b/rc.d/zoxide index 6282d76..5ad5379 100644 --- a/rc.d/zoxide +++ b/rc.d/zoxide @@ -1,5 +1,3 @@ -#!/bin/bash - if (command -v zoxide &>/dev/null); then eval "$(zoxide init bash)" fi