From 0d8d7972b2d64b75795ba60f5783fc4547dc849e Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 13 Aug 2022 13:26:55 -0500 Subject: [PATCH] make the nature of zsh more apparent --- lib/{alias.sh => alias.zsh} | 2 ++ lib/{conda.sh => conda.zsh} | 1 + lib/{custom.sh => custom.zsh} | 3 ++- lib/{env.sh => env.zsh} | 2 ++ lib/{function.sh => function.zsh} | 2 ++ lib/fzf.zsh | 2 ++ lib/{path.sh => path.zsh} | 2 ++ lib/{prompt.sh => prompt.zsh} | 0 8 files changed, 13 insertions(+), 1 deletion(-) rename lib/{alias.sh => alias.zsh} (98%) rename lib/{conda.sh => conda.zsh} (97%) rename lib/{custom.sh => custom.zsh} (88%) rename lib/{env.sh => env.zsh} (99%) rename lib/{function.sh => function.zsh} (98%) rename lib/{path.sh => path.zsh} (98%) rename lib/{prompt.sh => prompt.zsh} (100%) diff --git a/lib/alias.sh b/lib/alias.zsh similarity index 98% rename from lib/alias.sh rename to lib/alias.zsh index cd33edf..adcd6e4 100755 --- a/lib/alias.sh +++ b/lib/alias.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # system usage ######################################### alias reload="source ~/.zshrc" diff --git a/lib/conda.sh b/lib/conda.zsh similarity index 97% rename from lib/conda.sh rename to lib/conda.zsh index ba57e21..bf965e6 100755 --- a/lib/conda.sh +++ b/lib/conda.zsh @@ -1,3 +1,4 @@ +#!/usr/bin/env zsh # Updated to use $HOME # >>> conda initialize >>> diff --git a/lib/custom.sh b/lib/custom.zsh similarity index 88% rename from lib/custom.sh rename to lib/custom.zsh index 211b8d4..28b6975 100755 --- a/lib/custom.sh +++ b/lib/custom.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # env variables if ! [ $(cat /etc/hostname)=="thinkpad" ]; then export BROWSER=/mnt/c/Users/daylin/AppData/Local/Vivaldi/Application/vivaldi.exe @@ -5,4 +7,3 @@ else export BROWSER=vivaldi-stable fi # aliases -alias files=explorer.exe diff --git a/lib/env.sh b/lib/env.zsh similarity index 99% rename from lib/env.sh rename to lib/env.zsh index 92f6445..18d8482 100755 --- a/lib/env.sh +++ b/lib/env.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # XDG export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" diff --git a/lib/function.sh b/lib/function.zsh similarity index 98% rename from lib/function.sh rename to lib/function.zsh index cc8e7bb..c9ef603 100755 --- a/lib/function.sh +++ b/lib/function.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + function cl() { DIR="$*" # if no DIR given, go home diff --git a/lib/fzf.zsh b/lib/fzf.zsh index df93bb9..2ff9c94 100755 --- a/lib/fzf.zsh +++ b/lib/fzf.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # Auto-completion # --------------- [[ $- == *i* ]] && source "$HOME/.fzf/shell/completion.zsh" 2>/dev/null diff --git a/lib/path.sh b/lib/path.zsh similarity index 98% rename from lib/path.sh rename to lib/path.zsh index 78c9440..667f15c 100755 --- a/lib/path.sh +++ b/lib/path.zsh @@ -1,3 +1,5 @@ +#!/usr/bin/env zsh + # Start with system path # Retrieve it from getconf, otherwise it's just current $PATH prepend-path() { diff --git a/lib/prompt.sh b/lib/prompt.zsh similarity index 100% rename from lib/prompt.sh rename to lib/prompt.zsh