Skip to content

Commit

Permalink
zsh and wez
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Nov 17, 2024
1 parent 880c736 commit 6d22c38
Show file tree
Hide file tree
Showing 9 changed files with 600 additions and 367 deletions.
6 changes: 4 additions & 2 deletions .wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config.window_frame = {
font_size = 13.0,
}
config.colors = {
background = '#000000',
scrollbar_thumb = 'white',
tab_bar = {
active_tab = {
Expand Down Expand Up @@ -61,11 +62,11 @@ config.native_macos_fullscreen_mode = true
config.background = {
{
source = {
File = '/Users/mavni/Pictures/wallpaperflare1.jpg',
File = HOME .. '/Pictures/wallpaperflare4.jpg',
},
repeat_y = 'NoRepeat',
hsb = {
brightness = 0.36,
brightness = 0.13,
hue = 1.0,
saturation = 1.0,
},
Expand Down Expand Up @@ -108,6 +109,7 @@ config.keys = {
},
}

-- arrow keys keybindings
for _, direction in ipairs { 'Left', 'Right', 'Up', 'Down' } do
-- move between panes
table.insert(config.keys, { key = direction .. 'Arrow', mods = 'CMD|OPT', action = act.ActivatePaneDirection(direction) })
Expand Down
12 changes: 1 addition & 11 deletions .zsh_plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,13 @@ mattmc3/ez-compinit
zsh-users/zsh-completions kind:fpath path:src

loiccoyle/zsh-github-copilot
ohmyzsh/ohmyzsh path:plugins/argocd
ohmyzsh/ohmyzsh path:plugins/git kind:defer
ohmyzsh/ohmyzsh path:plugins/gh kind:defer
ohmyzsh/ohmyzsh path:plugins/golang kind:fpath
ohmyzsh/ohmyzsh path:lib/key-bindings.zsh
belak/zsh-utils path:utility
romkatv/zsh-bench kind:path
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
belak/zsh-utils path:history

# deferred
ohmyzsh/ohmyzsh path:plugins/asdf kind:defer
ohmyzsh/ohmyzsh path:plugins/common-aliases kind:defer
ohmyzsh/ohmyzsh path:plugins/git-auto-fetch kind:defer
ohmyzsh/ohmyzsh path:lib/directories.zsh kind:defer
ohmyzsh/ohmyzsh path:plugins/kubectl kind:defer
ohmyzsh/ohmyzsh path:plugins/git kind:defer
zsh-users/zsh-syntax-highlighting kind:defer

# this is last
Expand Down
1 change: 1 addition & 0 deletions .zshenv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
source ~/functions.sh
source ~/aliases.sh
22 changes: 9 additions & 13 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,9 @@ export LC_ALL=en_US.UTF-8
# ============= #
# Autoloaders #
# ============= #
fpath+=($ZSH_CACHE_DIR/completions /opt/homebrew/share/zsh/site-functions)
source $HOME/.antidote/antidote.zsh
antidote load

#################
## Completions ##
#################
autoload -U +X bashcompinit && bashcompinit
zsh-defer complete -o nospace -C terraform terraform
zsh-defer complete -o nospace -C terragrunt terragrunt
zsh-defer complete -C 'aws_completer' aws
[[ -f $ZSH_CACHE_DIR/completions/_docker ]] || docker completion zsh > $ZSH_CACHE_DIR/completions/_docker

# ================ #
# PS1 and Random #
Expand All @@ -77,8 +68,8 @@ setopt glob_complete
setopt multios # enable redirect to multiple streams: echo >file1 >file2
setopt long_list_jobs # show long list format job notifications
setopt interactivecomments # recognize comments
setopt autocd
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':zsh-utils:*:*' use-xdg-basedirs 'no'

# asdf
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE=~/Repos/dotfiles/requirements.txt
Expand All @@ -90,11 +81,16 @@ bindkey '^[\' zsh_gh_copilot_suggest # bind Alt+\ to suggest
# ===================== #
# Aliases and Functions #
# ===================== #
if [[ -f $HOME/aliases.sh ]]; then
source $HOME/aliases.sh
fi
export ASDF_DIR="$HOME/.asdf"
[[ -d $HOME/.asdf ]] && source $HOME/.asdf/asdf.sh
[[ -f $HOME/completions.zsh ]] && source $HOME/completions.zsh
[[ -f $HOME/aliases.sh ]] && source $HOME/aliases.sh
[[ -f $HOME/functions.sh ]] && source $HOME/functions.sh
[[ -f $HOME/corp-aliases.sh ]] && source $HOME/corp-aliases.sh

source $HOME/grep.zsh
source $HOME/kubectl.zsh

# ================ #
# Kubectl Contexts #
# ================ #
Expand Down
Loading

0 comments on commit 6d22c38

Please sign in to comment.