Add autocd option
This commit is contained in:
parent
eb614a5b49
commit
33cd4712cf
27
zsh/.zshrc
27
zsh/.zshrc
|
@ -10,6 +10,9 @@ export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;
|
||||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
# Use cd without cd
|
||||||
|
setopt autocd
|
||||||
|
|
||||||
# Make sure that search using up works
|
# Make sure that search using up works
|
||||||
autoload -U up-line-or-beginning-search
|
autoload -U up-line-or-beginning-search
|
||||||
autoload -U down-line-or-beginning-search
|
autoload -U down-line-or-beginning-search
|
||||||
|
@ -36,6 +39,9 @@ export SAVEHIST=10000000
|
||||||
|
|
||||||
source $XDG_CONFIG_HOME/zsh/powerlevel10k/powerlevel10k.zsh-theme
|
source $XDG_CONFIG_HOME/zsh/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
# Preferred editor for local and remote sessions
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
# else
|
# else
|
||||||
|
@ -60,7 +66,7 @@ if [ -f ~/.bash_aliases ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# GPULab
|
# GPULab
|
||||||
export GPULAB_CERT='/home/user/Other/gpulab.pem'
|
export GPULAB_CERT="$XDG_DATA_HOME/gpulab.pem"
|
||||||
export GPULAB_DEV='False'
|
export GPULAB_DEV='False'
|
||||||
|
|
||||||
# Smartcd
|
# Smartcd
|
||||||
|
@ -85,23 +91,20 @@ export TERM="screen-256color"
|
||||||
export FrameworkPathOverride=/lib/mono/4.5
|
export FrameworkPathOverride=/lib/mono/4.5
|
||||||
|
|
||||||
# Local python installation
|
# Local python installation
|
||||||
export PATH=/home/user/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
# MicroMamba
|
|
||||||
export MAMBA_ROOT_PREFIX=/home/user/.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="/usr/bin/micromamba";
|
export MAMBA_EXE="/usr/bin/micromamba";
|
||||||
export MAMBA_ROOT_PREFIX="/home/user/.micromamba";
|
export MAMBA_ROOT_PREFIX="$XDG_DATA_HOME/micromamba";
|
||||||
__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --prefix '/home/user/.micromamba' 2> /dev/null)"
|
__mamba_setup="$('/usr/bin/micromamba' shell hook --shell zsh --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/user/.micromamba/etc/profile.d/micromamba.sh" ]; then
|
if [ -f "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh" ]; then
|
||||||
. "/home/user/.micromamba/etc/profile.d/micromamba.sh"
|
. "$MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh"
|
||||||
else
|
else
|
||||||
export PATH="/home/user/.micromamba/bin:$PATH" # extra space after export prevents interference from conda init
|
export PATH="$MAMBA_ROOT_PREFIX/bin:$PATH" # extra space after export prevents interference from conda init
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset __mamba_setup
|
unset __mamba_setup
|
||||||
|
@ -124,7 +127,6 @@ if [[ "$TERM" == (Eterm*|alacritty*|aterm*|gnome*|konsole*|kterm*|putty*|rxvt*|s
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias gdb='gdb -q'
|
alias gdb='gdb -q'
|
||||||
alias ll='ls -lhat'
|
alias ll='ls -lhat'
|
||||||
|
@ -135,6 +137,3 @@ alias compress="tar --use-compress-program=lbzip2 -cvf"
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
|
alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
|
||||||
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
|
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
|
||||||
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
|
|
||||||
|
|
Loading…
Reference in New Issue