Compare commits
3
Commits
c2a1028c77
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8db715239d | ||
|
|
90bdcf50b3 | ||
|
|
783b2ea656 |
@@ -1,10 +1,3 @@
|
||||
alias duh1='du --max-depth=1 -h'
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
alias vi='vim'
|
||||
alias svi='sudo vi'
|
||||
alias vims='vi -S'
|
||||
alias cdd='cd ..'
|
||||
alias cddd='cd ../..'
|
||||
alias cdddd='cd ../../..'
|
||||
alias cddddd='cd ../../../..'
|
||||
alias vims='vi -S'
|
||||
@@ -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.
|
||||
@@ -103,8 +80,11 @@ ZSH_THEME="powerlevel10k/powerlevel10k" # set by `omz`
|
||||
plugins=(
|
||||
alias-finder
|
||||
aliases
|
||||
common-aliases
|
||||
dircycle
|
||||
docker
|
||||
docker-compose
|
||||
dotenv
|
||||
git
|
||||
gitfast
|
||||
history-substring-search
|
||||
@@ -113,6 +93,9 @@ plugins=(
|
||||
node
|
||||
npm
|
||||
nvm
|
||||
octozen
|
||||
ssh
|
||||
ssh-agent
|
||||
sudo
|
||||
uv
|
||||
zsh-autosuggestions
|
||||
|
||||
Reference in New Issue
Block a user