From 7f5ce770c921f538f4ef15036412cf619ded8cc0 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sun, 16 May 2021 18:20:35 -0500 Subject: feat: added shebang to all shell files --- bashrc | 2 ++ p10k.zsh | 2 ++ sh/aliases.sh | 2 ++ sh/gpg.sh | 2 ++ sh/profile.sh | 2 ++ sh/wsl.sh | 2 ++ zsh/aliases.zsh | 2 ++ zsh/keybindings.zsh | 2 ++ zsh/prompt.zsh | 2 ++ zsh/setopt.zsh | 2 ++ zsh/wsl.zsh | 2 ++ zshrc | 2 ++ 12 files changed, 24 insertions(+) diff --git a/bashrc b/bashrc index 29c408e..ca14ee6 100644 --- a/bashrc +++ b/bashrc @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + source "${DOTFILES:="${HOME}/dotfiles"}/sh/profile.sh" source $DOTFILES/sh/aliases.sh diff --git a/p10k.zsh b/p10k.zsh index 8ab2bf4..d1966cc 100644 --- a/p10k.zsh +++ b/p10k.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # Generated by Powerlevel10k configuration wizard on 2021-03-02 at 22:24 CST. # Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 09871. # Wizard options: powerline, unicode, lean, 2 lines, solid, no frame, light-ornaments, diff --git a/sh/aliases.sh b/sh/aliases.sh index 6505a39..d72a652 100644 --- a/sh/aliases.sh +++ b/sh/aliases.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Aliases alias update="sudo apt update && apt list --upgradable" alias upgrade="sudo apt upgrade -y" diff --git a/sh/gpg.sh b/sh/gpg.sh index 1909fad..c223695 100755 --- a/sh/gpg.sh +++ b/sh/gpg.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # https://github.com/benpye/wsl-ssh-pageant # https://github.com/drduh/YubiKey-Guide#remote-host-configuration # https://dev.to/dzerycz/series/11353 diff --git a/sh/profile.sh b/sh/profile.sh index bde5867..1d0022f 100644 --- a/sh/profile.sh +++ b/sh/profile.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + # Path PATH=$PATH:$HOME/.local/bin:$HOME/.dotnet/tools:$HOME/.cargo/bin diff --git a/sh/wsl.sh b/sh/wsl.sh index be64618..b924849 100644 --- a/sh/wsl.sh +++ b/sh/wsl.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + export EDITOR="code --wait" alias cb=clip.exe diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 05f1e86..880489d 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -1 +1,3 @@ +#!/usr/bin/env zsh + source "${DOTFILES:="${HOME}/dotfiles"}/sh/aliases.sh" \ No newline at end of file diff --git a/zsh/keybindings.zsh b/zsh/keybindings.zsh index 3b80098..ef49f55 100644 --- a/zsh/keybindings.zsh +++ b/zsh/keybindings.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + function r-delregion() { if ((REGION_ACTIVE)) then zle kill-region diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 1ac04cf..4298c70 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + function set_title() { folder=$(sed "s/$USER/~/g" <<<$PWD:t) diff --git a/zsh/setopt.zsh b/zsh/setopt.zsh index f862bab..8c173e5 100644 --- a/zsh/setopt.zsh +++ b/zsh/setopt.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + typeset -A ZSH_HIGHLIGHT_STYLES ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' HYPHEN_INSENSITIVE="true" diff --git a/zsh/wsl.zsh b/zsh/wsl.zsh index a1e091d..ac0d741 100644 --- a/zsh/wsl.zsh +++ b/zsh/wsl.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + source "${DOTFILES:-"${HOME}/dotfiles"}/sh/wsl.sh" source "${DOTFILES:-"${HOME}/dotfiles"}/sh/gpg.sh" diff --git a/zshrc b/zshrc index 317c5ad..a210d19 100644 --- a/zshrc +++ b/zshrc @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + source "${DOTFILES:="${HOME}/dotfiles"}/sh/profile.sh" # Directory hashtable -- cgit v1.2.3-70-g09d2