Compare commits
5 commits
b0bbea6df8
...
3bf1da9427
Author | SHA1 | Date | |
---|---|---|---|
3bf1da9427 | |||
e7ab5fd04f | |||
8e1ed5b9f4 | |||
3ed8025e04 | |||
9e56e7ba85 |
4 changed files with 25 additions and 23 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 7de28493eb8103c71336144c4a9350002bfdbbb9
|
||||
Subproject commit cd91bf774d4c964953160cf04c7e6b3bbd820baf
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
|||
|
||||
# except:
|
||||
!.zshrc
|
||||
!.zprofile
|
||||
!.vimrc
|
||||
!.ideavimrc
|
||||
!.config
|
||||
|
|
14
.zprofile
Normal file
14
.zprofile
Normal file
|
@ -0,0 +1,14 @@
|
|||
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$USER.sock
|
||||
function ssh-agent-start ()
|
||||
{
|
||||
# if that socket does not exist, start the ssh-agent on it
|
||||
if [[ -z $SSH_AGENT_PID ]]
|
||||
then
|
||||
rm $SSH_AUTH_SOCK
|
||||
eval $(ssh-agent -a "$SSH_AUTH_SOCK") > /dev/null
|
||||
# using ssh-add might ask for a password, we don't want that here.
|
||||
# If only using ssh keys without passphrases, you can do this here
|
||||
# ssh-add
|
||||
fi
|
||||
}
|
||||
ssh-agent-start
|
27
.zshrc
27
.zshrc
|
@ -43,8 +43,8 @@ function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\
|
|||
function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" }
|
||||
function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" }
|
||||
function cachekeys () { exec 2>/dev/null;
|
||||
eval $(ssh-agent)
|
||||
ssh-add ~/.ssh/id_rsa
|
||||
ssh-agent-start # see ~/.zprofile
|
||||
ssh-add
|
||||
}
|
||||
function newpass() {
|
||||
LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-40}
|
||||
|
@ -198,24 +198,6 @@ else
|
|||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
||||
### --- conda Config -------------------------------------
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/plex/.local/share/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/plex/.local/share/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/plex/.local/share/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
# we don't want to see (base) constantly, so we do this:
|
||||
PS1=$(echo $PS1 | sed 's/(base) //') # remove base
|
||||
|
||||
### load unversioned zsh code
|
||||
if [ -f ~/.zsh.local ]; then
|
||||
source ~/.zsh.local
|
||||
|
@ -223,3 +205,8 @@ else
|
|||
touch ~/.zsh.local
|
||||
fi
|
||||
|
||||
### --- pyenv Config -------------------------------------
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
eval "$(pyenv virtualenv-init - zsh)"
|
||||
|
|
Loading…
Add table
Reference in a new issue