This commit is contained in:
David Aizenberg
2022-10-26 00:53:51 +01:00
parent 6961eb3613
commit 110094d5af
3 changed files with 61 additions and 2 deletions

33
.bashrc
View File

@@ -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 <<<

4
.vimrc
View File

@@ -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 <F5> "=strftime("%I:%M %p %a %d/%m/%Y")<CR>p
inoremap <F5> <C-R>=strftime("%I:%M %p %a %d/%m/%Y")<CR>
"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

26
.zshrc
View File

@@ -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 <<<