refactor: .sh -> .zsh

This commit is contained in:
2024-07-24 02:18:40 +03:00
parent 135017c99b
commit 04254bae24
12 changed files with 15 additions and 15 deletions

2
.gitignore vendored
View File

@@ -5,6 +5,6 @@ bin/
*.swp
*.pyc
tests/
_local.sh
_local.zsh
.tmux_local.yml
.device_uid

6
.zshrc
View File

@@ -4,7 +4,7 @@ export DOTBIN="$HOME/.config/bin"
export DOTBIN_META="$HOME/.config/.bin"
source "$HOME/.dotfiles/plugins/functions.plugin.zsh"
source "$DOTFILES/exports.sh"
source "$DOTFILES/exports.zsh"
[[ "$1" == "-q" ]] || motd
@@ -55,7 +55,7 @@ export VISUAL="$EDITOR"
tmux source-file "$HOME/.config/.tmux.conf" 2>/dev/null
source "$DOTFILES/exports.sh" # must run before zsh_init
source "$DOTFILES/aliases.sh"
source "$DOTFILES/exports.zsh" # must run before zsh_init
source "$DOTFILES/aliases.zsh"
[[ ! -f "$HOME/.config/.p10k.zsh" ]] || source "$HOME/.config/.p10k.zsh"

View File

@@ -85,7 +85,7 @@ Some (but not all) of the plugins/modifications are listed here:
4. Run install scripts:
```bash
source ~/.dotfiles/install.sh
source ~/.dotfiles/install.zsh
```
And reload the terminal

View File

@@ -96,7 +96,7 @@ alias update-wezterm="brew upgrade --cask wezterm-nightly --no-quarantine --gree
# home
alias home="h_"
alias h="home"
alias hi="source \$DOTFILES/install.sh"
alias hi="source \$DOTFILES/install.zsh"
alias hli="hl && hi"
alias rh="rhome"
alias rt="home rt"

View File

@@ -118,7 +118,7 @@ fi
if [[ -f ~/.fzf.zsh ]]; then source ~/.fzf.zsh; fi
if [[ -f /opt/homebrew/opt/chruby/share/chruby/chruby.sh ]]; then source /opt/homebrew/opt/chruby/share/chruby/chruby.sh; fi
if [[ -f $(which rbenv) ]]; then eval "$(rbenv init - zsh)"; fi
if [[ -f "$DOTFILES/_local.sh" ]]; then source "$DOTFILES/_local.sh"; fi
if [[ -f "$DOTFILES/_local.zsh" ]]; then source "$DOTFILES/_local.zsh"; fi
export SHELLCHECK_OPTS='--shell=bash'

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env zsh
source $DOTFILES/autoload_completions.sh
# source $DOTFILES/plugins/colors.plugin.zsh
# source ~/.dotfiles/plugins/tmux.plugin.zsh
source $DOTFILES/autoload_completions.zsh
motd() {
out=$(run-parts $DOTFILES/scripts/motd)

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env zsh
source $DOTFILES/aliases.sh
source "$DOTFILES/aliases.zsh"
if [[ $(hostname) == 'spider.casraf.dev' ]]; then
text='@spider'

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env zsh
source "$HOME/.dotfiles/plugins/functions.plugin.zsh"
source "$HOME/.dotfiles/aliases.sh"
source "$DOTFILES/plugins/functions.plugin.zsh"
source "$DOTFILES/aliases.zsh"
if is_mac; then
df -h /System/Volumes/Data NE

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env zsh
source "$HOME/.dotfiles/aliases.sh"
source "$DOTFILES/aliases.zsh"
tls
echo

View File

@@ -31,7 +31,7 @@ withDefaultOpts(
description: 'Install dotfiles',
run: async (opts) => {
const vOpts = { ...opts, verbose: true }
await sourceRun(vOpts, `source "${DF_DIR}/install.sh"`)
await sourceRun(vOpts, `source "${DF_DIR}/install.zsh"`)
},
})
.parse()