fix(zsh): add prompt with zplug
This commit is contained in:
parent
601f6b3373
commit
1a9b54fff9
|
@ -5,14 +5,6 @@
|
||||||
enableCompletion = false;
|
enableCompletion = false;
|
||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
fetch = "git fetch --all --jobs=4 --progress --prune";
|
|
||||||
run = "./run";
|
|
||||||
pull = "git pull --autostash --jobs=4 --summary origin";
|
|
||||||
rebase = "git rebase --autostash --stat";
|
|
||||||
update = "fetch && rebase";
|
|
||||||
};
|
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
# Make Caps Lock behave like Ctrl.
|
# Make Caps Lock behave like Ctrl.
|
||||||
setxkbmap -option ctrl:nocaps
|
setxkbmap -option ctrl:nocaps
|
||||||
|
@ -88,6 +80,12 @@
|
||||||
bindkey " " expand-alias-space
|
bindkey " " expand-alias-space
|
||||||
bindkey -M isearch " " magic-space
|
bindkey -M isearch " " magic-space
|
||||||
|
|
||||||
|
ialias fetch="git fetch --all --jobs=4 --progress --prune"
|
||||||
|
ialias run="./run"
|
||||||
|
ialias pull="git pull --autostash --jobs=4 --summary origin"
|
||||||
|
ialias rebase="git rebase --autostash --stat"
|
||||||
|
ialias update="fetch && rebase"
|
||||||
|
|
||||||
setopt auto_cd
|
setopt auto_cd
|
||||||
setopt auto_pushd
|
setopt auto_pushd
|
||||||
setopt pushd_ignore_dups
|
setopt pushd_ignore_dups
|
||||||
|
@ -98,6 +96,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
|
{ name = "themes/robbyrussell"; tags = [from:oh-my-zsh as:theme]; }
|
||||||
{ name = "plugin/git"; tags = [from:oh-my-zsh]; }
|
{ name = "plugin/git"; tags = [from:oh-my-zsh]; }
|
||||||
{ name = "plugin/vi-mode"; tags = [from:oh-my-zsh]; }
|
{ name = "plugin/vi-mode"; tags = [from:oh-my-zsh]; }
|
||||||
{ name = "mollifier/cd-gitroot"; }
|
{ name = "mollifier/cd-gitroot"; }
|
||||||
|
|
Loading…
Reference in a new issue