~idmyn/dotfiles

19d47fd72b8e06fe1934ef56db19c55f050dea5d — David Mynors a month ago 65e54ef
Remove zsh config
4 files changed, 0 insertions(+), 69 deletions(-)

M install.conf.yaml
D shell/zsh/.zsh_plugins.txt
D shell/zsh/.zshenv
D shell/zsh/.zshrc
M install.conf.yaml => install.conf.yaml +0 -3
@@ 19,9 19,6 @@
    ~/.elvish/lib/direnv.elv: shell/elvish/lib/direnv.elv
    ~/.elvish/lib/secrets.elv: shell/elvish/lib/secrets.elv
    ~/.bashrc: shell/.bashrc
    ~/.zshrc: shell/zsh/.zshrc
    ~/.zshenv: shell/zsh/.zshenv
    ~/.zsh_plugins.txt: shell/zsh/.zsh_plugins.txt
    ~/.config/kitty/kitty.conf: kitty/kitty.conf
    ~/.hyper.js: hyper/.hyper.js
    ~/.bin: shell/bin

D shell/zsh/.zsh_plugins.txt => shell/zsh/.zsh_plugins.txt +0 -6
@@ 1,6 0,0 @@
mafredri/zsh-async
rupa/z
denysdovhan/spaceship-prompt
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search

D shell/zsh/.zshenv => shell/zsh/.zshenv +0 -10
@@ 1,10 0,0 @@
emulate sh -c '. ~/.profile'

export SPACESHIP_CHAR_SYMBOL="❯ "
export SPACESHIP_DIR_TRUNC_REPO="false"

export SPACESHIP_PACKAGE_SHOW="false"

export SPACESHIP_DOCKER_SHOW="false"

export SPACESHIP_NODE_SHOW="false"

D shell/zsh/.zshrc => shell/zsh/.zshrc +0 -50
@@ 1,50 0,0 @@
autoload -U colors && colors

autoload -Uz compinit
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
  compinit
else
  compinit -C
fi

source ~/.aliases
source ~/.secret-aliases

. $(brew --prefix asdf)/asdf.sh

source ~/.zsh_plugins.sh

# https://arjanvandergaag.nl/blog/customize-zsh-prompt-with-vcs-info.html
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
precmd() {
    vcs_info
}
setopt prompt_subst
zstyle ':vcs_info:git*' formats "%{$fg[blue]%}%b%{$reset_color%}%m%u%c%{$reset_color%}"

bindkey -e
bindkey -M emacs '^L' history-substring-search-up
bindkey -M emacs '^K' history-substring-search-down

# colors via https://geoff.greer.fm/lscolors/ based on exa defaults
export LSCOLORS=ExgxcxdxbxegfhabagacEx

function chpwd() {
    emulate -L zsh
    echo && ls -GFA
    print -Pn "\e]51;A$(pwd)\e\\"; # Directory tracking for emacs-libvterm
}
setopt autocd
alias ls='ls -GF'

# Function for killing servers running at particular ports
function kp { kill $(sudo lsof -t -i:"$1"); }

eval "$(direnv hook zsh)"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/davidmy/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/davidmy/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/davidmy/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/davidmy/google-cloud-sdk/completion.zsh.inc'; fi