mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-16 07:26:51 +00:00
func
This commit is contained in:
parent
b99ddaa27e
commit
28e049d94d
2 changed files with 11 additions and 13 deletions
10
.zsh/func.zsh
Normal file
10
.zsh/func.zsh
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Turn control+z into a toggle switch
|
||||
ctrlz() {
|
||||
if [[ $#BUFFER == 0 ]]; then
|
||||
fg >/dev/null 2>&1 && zle redisplay
|
||||
else
|
||||
zle push-input
|
||||
fi
|
||||
}
|
||||
zle -N ctrlz
|
||||
bindkey '^Z' ctrlz
|
14
.zshrc
14
.zshrc
|
@ -7,8 +7,6 @@ export OTHER=$HOME/.zsh
|
|||
export ZSH=$HOME/.oh-my-zsh
|
||||
export ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
source $OTHER/powerlevel_settings.sh
|
||||
# source $ZSH/oh-my-zsh.sh
|
||||
|
||||
#COMPLETION_WAITING_DOTS="false"
|
||||
|
||||
plugins=(git docker docker-compose virtualenv)
|
||||
|
@ -24,17 +22,6 @@ for f in $OTHER/*.zsh; do
|
|||
fi
|
||||
done
|
||||
|
||||
# Turn control+z into a toggle switch
|
||||
ctrlz() {
|
||||
if [[ $#BUFFER == 0 ]]; then
|
||||
fg >/dev/null 2>&1 && zle redisplay
|
||||
else
|
||||
zle push-input
|
||||
fi
|
||||
}
|
||||
zle -N ctrlz
|
||||
bindkey '^Z' ctrlz
|
||||
|
||||
if [ -d "$HOME/.zsh-custom" ]; then
|
||||
for f in $HOME/.zsh-custom/*; do
|
||||
if [ -f $f ]; then
|
||||
|
@ -44,3 +31,4 @@ if [ -d "$HOME/.zsh-custom" ]; then
|
|||
fi
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
# autoload -Uz compinit && compinit -i
|
||||
source $OTHER/func.zsh
|
||||
|
|
Loading…
Add table
Reference in a new issue