remove dead code
This commit is contained in:
23
zsh/.zshrc
23
zsh/.zshrc
@@ -37,27 +37,6 @@ fpath=($DOTFILES/zsh/zsh-completions/src $fpath)
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
function start_ssh_agent {
|
||||
echo "Initialising new SSH agent..."
|
||||
/usr/bin/ssh-agent | sed 's/^echo/#echo/' >"${SSH_ENV}"
|
||||
echo succeeded
|
||||
chmod 600 "${SSH_ENV}"
|
||||
. "${SSH_ENV}" >/dev/null
|
||||
/usr/bin/ssh-add
|
||||
}
|
||||
|
||||
# Source SSH settings, if applicable
|
||||
|
||||
#if [ -f "${SSH_ENV}" ]; then
|
||||
# SSH_AGENT_PID="$(echo $(($(cat /proc/sys/kernel/pid_max) + 1)))"
|
||||
# . "${SSH_ENV}" > /dev/null
|
||||
# ps -ef | grep ${SSH_AGENT_PID} | grep 'ssh-agent$' > /dev/null || {
|
||||
# start_ssh_agent;
|
||||
# }
|
||||
#else
|
||||
# start_ssh_agent;
|
||||
#fi
|
||||
|
||||
if [ -f ~/.zsh_aliases ]; then
|
||||
. ~/.zsh_aliases
|
||||
fi
|
||||
@@ -67,6 +46,4 @@ function set_win_title(){
|
||||
}
|
||||
starship_precmd_user_func="set_win_title"
|
||||
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user