From 110094d5afc27854158ef20f7dc68af0e64e0304 Mon Sep 17 00:00:00 2001 From: David Aizenberg Date: Wed, 26 Oct 2022 00:53:51 +0100 Subject: [PATCH] sync --- .bashrc | 33 +++++++++++++++++++++++++++++++++ .vimrc | 4 +++- .zshrc | 26 +++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index afc2f42..9707df3 100644 --- a/.bashrc +++ b/.bashrc @@ -155,3 +155,36 @@ echo -e "\033]11;#000000\a" # Generated for envman. Do not edit. [ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh" + +# >>> mamba initialize >>> +# !! Contents within this block are managed by 'mamba init' !! +export MAMBA_EXE="/home/neo/.micromamba/bin/micromamba"; +export MAMBA_ROOT_PREFIX="/home/neo/micromamba"; +__mamba_setup="$('/home/neo/.micromamba/bin/micromamba' shell hook --shell bash --prefix '/home/neo/micromamba' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__mamba_setup" +else + if [ -f "/home/neo/micromamba/etc/profile.d/micromamba.sh" ]; then + . "/home/neo/micromamba/etc/profile.d/micromamba.sh" + else + export PATH="/home/neo/micromamba/bin:$PATH" # extra space after export prevents interference from conda init + fi +fi +unset __mamba_setup +# <<< mamba initialize <<< + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/neo/micromamba/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/neo/micromamba/etc/profile.d/conda.sh" ]; then + . "/home/neo/micromamba/etc/profile.d/conda.sh" + else + export PATH="/home/neo/micromamba/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + diff --git a/.vimrc b/.vimrc index e3e741c..3d808ca 100644 --- a/.vimrc +++ b/.vimrc @@ -17,6 +17,8 @@ call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'neoclide/coc.nvim' Plugin 'preservim/nerdtree' +Plugin 'nvim-lua/plenary.nvim' +Plugin 'jose-elias-alvarez/null-ls.nvim' Plugin 'nathanaelkane/vim-indent-guides' "Plugin 'nvim-lualine/lualine.nvim' Plugin 'kyazdani42/nvim-web-devicons' @@ -92,7 +94,7 @@ nnoremap "=strftime("%I:%M %p %a %d/%m/%Y")p inoremap =strftime("%I:%M %p %a %d/%m/%Y") "set list " show invisible characters -"set mouse=a " try to use a mouse in the console (wimp!) +set mouse=a " try to use a mouse in the console (wimp!) set autoindent " set the cursor at same indent as line above set smartindent " try to be smart about indenting (C-style) set noexpandtab diff --git a/.zshrc b/.zshrc index d082b0d..5e1658d 100644 --- a/.zshrc +++ b/.zshrc @@ -9,6 +9,9 @@ #Exports EDITOR=nvim +# Set Terminal Background so I know I'm SSH'd +echo -e "\033]11;#141414\a" + alias vim='nvim' alias ls='ls -hF --color' # add colors for filetype recognition @@ -32,7 +35,7 @@ alias did="vim +'normal Go' +'r!date' ~/did.txt" alias genpass="apg -a 1 -M lnc -n 9 -m 26" export GOPATH=$HOME/go -PATH=$GOPATH/bin:$PATH +PATH=$GOPATH/bin:/home/neo/mongoClient::$PATH source /etc/profile.d/go.sh source ~/.private.env @@ -43,6 +46,11 @@ alias ktx='kubectx' alias knx='kubens' setopt no_flow_control +function rename() { + echo "Renaming window to $1" + tmux rename-window $1 +} + function fzf-ssh () { local selected_host=$(grep "Host " ~/.ssh/config | grep -v '*' | cut -b 6- | fzf --query "$LBUFFER" --prompt="SSH Remote > ") @@ -139,3 +147,19 @@ unset key # Scaleway CLI autocomplete initialization. eval "$(scw autocomplete script shell=zsh)" + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/neo/micromamba/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/neo/micromamba/etc/profile.d/conda.sh" ]; then + . "/home/neo/micromamba/etc/profile.d/conda.sh" + else + export PATH="/home/neo/micromamba/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< +