Skip to content

Commit

Permalink
Fix zsh not initialzing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pkissling committed Oct 27, 2023
1 parent f9fb5ed commit 16e42da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions alacritty/alacritty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ key_bindings:
- { key: Left, mods: Alt, chars: "\x1BB" }
- { key: Left, mods: Command, chars: "\x1bOH", mode: AppCursor } # Home
- { key: Right, mods: Command, chars: "\x1bOF", mode: AppCursor } # End

shell:
program: /bin/zsh
2 changes: 1 addition & 1 deletion brew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ brew bundle dump --file /tmp/Brewfile.dump --force
# identify delta (missing packages) and append to Brewfile
grep --invert-match --line-regexp --file /tmp/Brewfile.concat /tmp/Brewfile.dump >> "${HOME}"/dotfiles/brew/Brewfile."${USAGE}" || true

# sort Brewfiles
# sort Brewfiles (keep taps on top)
find "${HOME}"/dotfiles/brew -type f -name "Brewfile*" ! -name "*.lock.json" -print0 | while IFS= read -r -d '' file; do
{
grep "^tap" "$file";
Expand Down
3 changes: 3 additions & 0 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ set -g @dracula-show-powerline false
# set color
set -g default-terminal "screen-256color"

# set default shell
set -g default-command /bin/zsh

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
10 changes: 6 additions & 4 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ plugins=(
zoxide
)

# init zsh
export ZSH=~/.oh-my-zsh
source $ZSH/oh-my-zsh.sh

# create new tmux default session
if [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default\; split-window -h \; split-window -v \; select-pane -t 0 \;
fi

# zsh
# configure zsh
export DISABLE_AUTO_UPDATE=true
export DISABLE_MAGIC_FUNCTIONS=true
export HYPHEN_INSENSITIVE=true
export ZSH=~/.oh-my-zsh
export ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
source $ZSH/oh-my-zsh.sh

# zplug
export ZPLUG_HOME="${HOMEBREW_PREFIX}"/opt/zplug
Expand All @@ -35,7 +37,7 @@ fi
zplug load

# theme
ln -sf $ZPLUG_HOME/repos/dracula/zsh/dracula.zsh-theme $ZSH/themes/dracula.zsh-theme
ln -sf $ZPLUG_HOME/repos/dracula/zsh/dracula.zsh-theme $ZSH/themes/dracula.zsh-theme 2> /dev/null
export ZSH_THEME="dracula" # theme

# zsh-autosuggestions
Expand Down

0 comments on commit 16e42da

Please sign in to comment.