mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-18 01:29:06 +00:00
refactor: .sh -> .zsh
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,6 +5,6 @@ bin/
|
||||
*.swp
|
||||
*.pyc
|
||||
tests/
|
||||
_local.sh
|
||||
_local.zsh
|
||||
.tmux_local.yml
|
||||
.device_uid
|
||||
|
||||
6
.zshrc
6
.zshrc
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
source $DOTFILES/aliases.sh
|
||||
source "$DOTFILES/aliases.zsh"
|
||||
|
||||
if [[ $(hostname) == 'spider.casraf.dev' ]]; then
|
||||
text='@spider'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env zsh
|
||||
source "$HOME/.dotfiles/aliases.sh"
|
||||
|
||||
source "$DOTFILES/aliases.zsh"
|
||||
|
||||
tls
|
||||
echo
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user