Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b87b28213 | ||
|
|
1b22102296 |
@@ -1,26 +1,3 @@
|
||||
# ssh key loading.
|
||||
env=~/.ssh/agent.env
|
||||
|
||||
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
|
||||
|
||||
agent_start () {
|
||||
(umask 077; ssh-agent >| "$env")
|
||||
. "$env" >| /dev/null ; }
|
||||
|
||||
agent_load_env
|
||||
|
||||
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
|
||||
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)
|
||||
|
||||
if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
|
||||
agent_start
|
||||
ssh-add
|
||||
elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then
|
||||
ssh-add
|
||||
fi
|
||||
|
||||
unset env
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
@@ -133,4 +110,3 @@ source $HOME/.aliases
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
alefragnani.Bookmarks
|
||||
atlassian.atlascode
|
||||
coolbear.systemd-unit-file
|
||||
cschlosser.doxdocgen
|
||||
donjayamanne.githistory
|
||||
eamodio.gitlens
|
||||
file-icons.file-icons
|
||||
Gruntfuggly.todo-tree
|
||||
IBM.output-colorizer
|
||||
jeff-hykin.better-cpp-syntax
|
||||
mhutchie.git-graph
|
||||
ms-azuretools.vscode-docker
|
||||
ms-python.isort
|
||||
ms-python.pylint
|
||||
ms-python.python
|
||||
ms-python.vscode-pylance
|
||||
ms-vscode-remote.remote-containers
|
||||
ms-vscode-remote.remote-ssh
|
||||
ms-vscode-remote.remote-ssh-edit
|
||||
ms-vscode-remote.remote-wsl
|
||||
ms-vscode.cmake-tools
|
||||
ms-vscode.cpptools
|
||||
ms-vscode.cpptools-extension-pack
|
||||
ms-vscode.cpptools-themes
|
||||
ms-vscode.makefile-tools
|
||||
ms-vscode.remote-explorer
|
||||
njpwerner.autodocstring
|
||||
notskm.clang-tidy
|
||||
redhat.vscode-yaml
|
||||
smcpeak.default-keys-windows
|
||||
twxs.cmake
|
||||
Tyriar.sort-lines
|
||||
xaver.clang-format
|
||||
alefragnani.Bookmarks
|
||||
atlassian.atlascode
|
||||
coolbear.systemd-unit-file
|
||||
cschlosser.doxdocgen
|
||||
donjayamanne.githistory
|
||||
eamodio.gitlens
|
||||
file-icons.file-icons
|
||||
Gruntfuggly.todo-tree
|
||||
IBM.output-colorizer
|
||||
jeff-hykin.better-cpp-syntax
|
||||
mhutchie.git-graph
|
||||
ms-azuretools.vscode-docker
|
||||
ms-python.isort
|
||||
ms-python.pylint
|
||||
ms-python.python
|
||||
ms-python.vscode-pylance
|
||||
ms-vscode-remote.remote-containers
|
||||
ms-vscode-remote.remote-ssh
|
||||
ms-vscode-remote.remote-ssh-edit
|
||||
ms-vscode-remote.remote-wsl
|
||||
ms-vscode.cmake-tools
|
||||
ms-vscode.cpptools
|
||||
ms-vscode.cpptools-extension-pack
|
||||
ms-vscode.cpptools-themes
|
||||
ms-vscode.makefile-tools
|
||||
ms-vscode.remote-explorer
|
||||
njpwerner.autodocstring
|
||||
notskm.clang-tidy
|
||||
redhat.vscode-yaml
|
||||
smcpeak.default-keys-windows
|
||||
twxs.cmake
|
||||
Tyriar.sort-lines
|
||||
xaver.clang-format
|
||||
ZainChen.json
|
||||
Executable → Regular
+1
-1
@@ -5,4 +5,4 @@ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
|
||||
./setup_symlinks.sh
|
||||
apt install stow
|
||||
Executable → Regular
Reference in New Issue
Block a user