zsh on nix changes
This commit is contained in:
parent
695ae90a70
commit
fdb84af08b
4 changed files with 16 additions and 14 deletions
|
@ -42,3 +42,5 @@ alias lexid-inc="python -c \"import sys;build=(sys.argv[1] if len(sys.argv) ==2
|
||||||
alias task="./do"
|
alias task="./do"
|
||||||
alias task="./task"
|
alias task="./task"
|
||||||
alias t="./task"
|
alias t="./task"
|
||||||
|
|
||||||
|
alias micromamba-fhs="nix-shell -E 'with import <nixpkgs> {}; (pkgs.buildFHSUserEnv {name = \"fhs\"; runScript=\"zsh\";}).env'"
|
||||||
|
|
|
@ -3,9 +3,9 @@ ${ZDOTDIR}/plugins/p10k-instant
|
||||||
mattmc3/zephyr path:plugins/zfunctions
|
mattmc3/zephyr path:plugins/zfunctions
|
||||||
|
|
||||||
# general use-plugins
|
# general use-plugins
|
||||||
mattmc3/zephyr path:plugins/clipboard
|
|
||||||
mattmc3/zephyr path:plugins/history
|
mattmc3/zephyr path:plugins/history
|
||||||
mattmc3/zephyr path:plugins/utility
|
mattmc3/zephyr path:plugins/utility
|
||||||
|
|
||||||
ohmyzsh/ohmyzsh path:plugins/copybuffer
|
ohmyzsh/ohmyzsh path:plugins/copybuffer
|
||||||
ohmyzsh/ohmyzsh path:plugins/copyfile
|
ohmyzsh/ohmyzsh path:plugins/copyfile
|
||||||
ohmyzsh/ohmyzsh path:plugins/extract
|
ohmyzsh/ohmyzsh path:plugins/extract
|
||||||
|
@ -21,14 +21,14 @@ wfxr/forgit
|
||||||
romkatv/powerlevel10k kind:fpath
|
romkatv/powerlevel10k kind:fpath
|
||||||
${ZDOTDIR}/plugins/prompt
|
${ZDOTDIR}/plugins/prompt
|
||||||
|
|
||||||
|
# start compinit before
|
||||||
|
# fzf-tab and zexists
|
||||||
|
belak/zsh-utils path:completion
|
||||||
|
|
||||||
# wrap-up
|
# wrap-up
|
||||||
mattmc3/zephyr path:plugins/confd
|
mattmc3/zephyr path:plugins/confd
|
||||||
${ZDOTDIR}/plugins/zexists
|
${ZDOTDIR}/plugins/zexists
|
||||||
|
|
||||||
# start compinit before fzf-tab
|
|
||||||
belak/zsh-utils path:completion
|
|
||||||
|
|
||||||
|
|
||||||
# deferred
|
# deferred
|
||||||
zdharma-continuum/fast-syntax-highlighting kind:defer
|
zdharma-continuum/fast-syntax-highlighting kind:defer
|
||||||
Aloxaf/fzf-tab kind:defer
|
Aloxaf/fzf-tab kind:defer
|
||||||
|
|
|
@ -1,20 +1,17 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
alias umamba=micromamba
|
alias umamba=micromamba
|
||||||
alias um=micromamba
|
alias um=micromamba
|
||||||
|
|
||||||
# >>> mamba initialize >>>
|
# >>> mamba initialize >>>
|
||||||
# !! Contents within this block are managed by 'mamba init' !!
|
# !! Contents within this block are managed by 'mamba init' !!
|
||||||
export MAMBA_EXE="$HOME/bin/micromamba";
|
# not really I manage it myself...
|
||||||
|
export MAMBA_EXE="$(command -v micromamba)"
|
||||||
export MAMBA_ROOT_PREFIX="$HOME/.micromamba";
|
export MAMBA_ROOT_PREFIX="$HOME/.micromamba";
|
||||||
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
|
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
eval "$__mamba_setup"
|
eval "$__mamba_setup"
|
||||||
else
|
else
|
||||||
if [ -f "$HOME/.micromamba/etc/profile.d/micromamba.sh" ]; then
|
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
|
||||||
. "$HOME/.micromamba/etc/profile.d/micromamba.sh"
|
|
||||||
else
|
|
||||||
export PATH="$HOME/.micromamba/bin:$PATH" # extra space after export prevents interference from conda init
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
unset __mamba_setup
|
unset __mamba_setup
|
||||||
# <<< mamba initialize <<<
|
# <<< mamba initialize <<<
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
eval "$(zoxide init zsh --cmd cd)"
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
if is-exe lsd; then
|
if is-exe lsd; then
|
||||||
export _ZO_FZF_OPTS="--preview 'command lsd --tree --color always --icon always {2..}'"
|
export _ZO_FZF_OPTS="--preview 'command lsd --tree --color always --icon always {2..}'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
eval "$(zoxide init zsh --cmd cd)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue