Fixed VIM issue, added Visual Studio PowerShell script, and fixed CA certificate issue.

This commit is contained in:
Brian Zalewski 2023-08-18 00:05:18 -04:00 committed by GitHub
parent 577b6313bb
commit a2bde8d65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 15 deletions

View file

@ -7,6 +7,7 @@ githubLocation: https://github.com/megabyte-labs/install.doctor/blob/master/home
scriptLocation: https://github.com/megabyte-labs/install.doctor/raw/master/home/dot_config/shell/exports.sh.tmpl
repoLocation: home/dot_config/shell/exports.sh.tmpl
---
# Environment Variables
Houses the environment variables that are included by `~/.bashrc` and `~/.zshrc`
@ -16,8 +17,6 @@ Houses the environment variables that are included by `~/.bashrc` and `~/.zshrc`
This script is included by `~/.bashrc` and `~/.zshrc` to provide environment variables that play harmoniously with
the default Install Doctor configurations.
## Source Code
```
@ -61,9 +60,6 @@ export COLOR_SCHEME=dark
export GTK_RC_FILES="$XDG_CONFIG_HOME/gtk-1.0/gtkrc"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
### PATH References
export PATH_TASK="$(which task)"
### PATH
export PATH="/opt/local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
@ -89,6 +85,9 @@ elif [ -f /usr/local/bin/brew ]; then
eval $(/usr/local/bin/brew shellenv)
fi
### PATH References
export PATH_TASK="$(which task)"
{{ if eq .host.distro.id "darwin" }}
# Adjustment for macOS
export WHALEBREW_INSTALL_PATH="/usr/local/bin"

View file

@ -38,9 +38,6 @@ export COLOR_SCHEME=dark
export GTK_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-1.0/gtkrc"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc"
### PATH References
export PATH_TASK="$(which task)"
### PATH
export PATH="/opt/local/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
@ -155,6 +152,12 @@ fi
# BW_CLIENTID client_id
# BW_CLIENTSECRET
### CA Certificate
# Used by Python, cURL, and other tools
export CERT_PATH="$HOME/.local/etc/ssl/curl/cacert.pem"
export SSL_CERT_FILE="$CERT_PATH"
export REQUESTS_CA_BUNDLE="$CERT_PATH"
### Cheat
if command -v fzf > /dev/null; then
export CHEAT_USE_FZF=true
@ -356,11 +359,12 @@ export PATH="$PATH:$PNPM_HOME"
# export PRETTIERD_DEFAULT_CONFIG=""
### Python
if command -v python3 > /dev/null; then
export CERT_PATH="$(python3 -m certifi)"
export SSL_CERT_FILE="$CERT_PATH"
export REQUESTS_CA_BUNDLE="$CERT_PATH"
fi
# Replaced by certificate retrieved from the cURL website
# if command -v python3 > /dev/null; then
# export CERT_PATH="$(python3 -m certifi)"
# export SSL_CERT_FILE="$CERT_PATH"
# export REQUESTS_CA_BUNDLE="$CERT_PATH"
# fi
### Readline
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/readline/inputrc"

View file

@ -339,7 +339,7 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Install Coc extensions
" TODO: Add https://github.com/yuki-yano/fzf-preview.vim
" TODO: Add https://github.com/tpope/vim-fugitive
let g:coc_global_config="${XDG_CONFIG_HOME:-$HOME/.config}/coc/coc-settings.json"
let g:coc_config_home='~/.config/coc'
let g:coc_global_extensions = [
\'@yaegassy/coc-ansible',
\'@yaegassy/coc-nginx',
@ -424,7 +424,11 @@ let g:syntastic_check_on_wq = 0
set encoding=UTF-8
" Set location of viminfo file
set viminfo+=n~/.config/vim/viminfo
if !has('nvim')
set viminfo+=n~/.config/vim/viminfo
else
set viminfo+=n~/.config/vim/nvimshada
endif
silent! call plug#begin('~/.local/share/vim/plugged')
Plug '~/.local/share/vim/plugged/ale'