-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from pascal-zarrad/feature/improve-stability
Remove seldom used plugins and optimize performance
- Loading branch information
Showing
13 changed files
with
38 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,16 @@ | |
# Script Name : psh-ssh-agent-installer | ||
# Description : Enables oh-my-zsh's ssh-agent plugin | ||
# to automatically load the ssh-agent. | ||
# Especially usefull on WSL2. | ||
# Only enabled on WSL2. | ||
# Args : - | ||
# Author : Pascal Zarrad | ||
# Email : [email protected] | ||
#================================================================== | ||
|
||
apply_ohmyzsh_plugin "ssh-agent" | ||
if grep -q "Microsoft" "/proc/version" || grep -q ".*microsoft-standard*." "/proc/version" | ||
then | ||
apply_ohmyzsh_plugin "ssh-agent" | ||
|
||
# Configure ssh agent to not instantly load keys on zsh start | ||
write_zshrc "zstyle :omz:plugins:ssh-agent lazy yes" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
templates/git_integration_disable_async_prompt.template.zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#PSH_TEMPLATE=AFTER_PLUGINS_BEFORE_ZPLUG_APPLY | ||
zstyle ':omz:alpha:lib:git' async-prompt no |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#PSH_TEMPLATE=END | ||
# History improvements | ||
# Source: https://jdhao.github.io/2021/03/24/zsh_history_setup/ | ||
export HISTFILE=~/.histfile # history file location | ||
export HISTSIZE=1000000 # the number of items for the internal history list | ||
export SAVEHIST=1000000 # maximum number of items for the history file | ||
setopt HIST_IGNORE_ALL_DUPS # do not put duplicated command into history list | ||
setopt HIST_SAVE_NO_DUPS # do not save duplicated command | ||
setopt HIST_REDUCE_BLANKS # remove unnecessary blanks | ||
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution | ||
setopt EXTENDED_HISTORY # record command start time |