fixup vim and other plugins

pull/8/head
Adam Veldhousen 2023-03-27 16:09:03 -05:00
parent 21636b68cb
commit 1dc2b42729
No known key found for this signature in database
4 changed files with 30 additions and 11 deletions

View File

@ -33,3 +33,21 @@ asdf_use() {
asdf install ${plugin} ${version};
asdf local ${plugin} ${version};
}
asdf_local_use() {
local TOOL_VERSIONS_PATH='.tool-versions';
if [ -z "${1}" ]; then
TOOL_VERSIONS_PATH="${1}";
fi
cat ${TOOL_VERSIONS_PATH} | xargs -I {} asdf local {};
}
asdf_add_plugins() {
local TOOL_VERSIONS_PATH='.tool-versions';
if [ -z "${1}" ]; then
TOOL_VERSIONS_PATH="${1}";
fi
awk '{print $1}' ${TOOL_VERSIONS_PATH} | xargs -I {} asdf plugin add {};
}

View File

@ -1,6 +1,6 @@
[alias]
# View abbreviated SHA, description, and history graph
ls = log --pretty=format:'%Cblue%h -%d %Cgreen%an %Creset%s - %Cred%GS' --abbrev-commit --date=relative --branches --graph -n 45
ls = log --pretty=format:'%Cblue%h -%d %Cgreen%an %Creset%s - %Cred%GS' --abbrev-commit --date=relative --branches --graph -n 45
# View the current working tree status using the short format
s = status -s
@ -148,7 +148,7 @@
[pull]
default = current
ff = only
ff = only
[user]
email = adamveld12@gmail.com

View File

@ -11,6 +11,9 @@ success_symbol = "[➜](bold green)"
[package]
disabled = true
[python]
disabled = true
[kubernetes]
format = '[⛵ $context](green) '
disabled = false

16
plugins/vim/vim.sh Normal file → Executable file
View File

@ -10,31 +10,29 @@ if [[ -d "${FILES_USER_CONFIG}/vim" ]]; then
local PATHOGEN_TMP="${VIM_SOURCE}/vim-pathogen";
if ! [[ -f "${VIMRUNTIME}/autoload/pathogen.vim" ]]; then
files_debug_log "[vim_install_plugins] installing pathogen.vim";
if ! [[ -d "${PATHOGEN_TMP}" ]]; then
git clone git://github.com/tpope/vim-pathogen.git ${PATHOGEN_TMP};
fi
# if ! [[ -d "${PATHOGEN_TMP}" ]]; then
# git clone git://github.com/tpope/vim-pathogen.git ${PATHOGEN_TMP};
# fi
curl -LSso ${VIMRUNTIME}/autoload/pathogen.vim https://tpo.pe/pathogen.vim
mkdir -p ${VIMRUNTIME}/autoload/;
cp -r ${PATHOGEN_TMP}/autoload/* ${VIMRUNTIME}/autoload/;
fi
if ! [[ -d ${VIM_BUNDLE} ]]; then
if ! [[ -d "${VIM_BUNDLE}" ]]; then
files_debug_log "[vim_install_plugins] installing vim plugins...";
mkdir -p ${VIM_BUNDLE};
pushd ${VIM_BUNDLE};
local PLUGINS=$(cat ${VIM}/plugins.txt);
for plugin in ${PLUGINS}; do
if [[ "${plugin:0:3}" = "git" ]]; then
if [[ "${plugin:0:5}" = "https" ]]; then
echo "Installing $plugin...";
git clone -q $plugin > /dev/null &
git clone -q $plugin 2>&1 /dev/null &
fi
done
time wait;
popd;
fi