Compare commits

...

12 Commits

Author SHA1 Message Date
Ibrahim Mkusa
6a53575d6e Alias interferes with externally installed kubectl 2025-05-26 20:23:53 -04:00
Ibrahim Mkusa
4fd788fdf1 bumped superlinter from 7.1.0 to 7.3.0 2025-04-22 20:16:19 -04:00
Ibrahim Mkusa
219c8ed90b add cloud-init package 2025-04-18 13:42:20 -04:00
Ibrahim Mkusa
1999df1350 install a firewall frontend if not available 2025-04-18 13:22:46 -04:00
Ibrahim Mkusa
82cf1547fa qemu-guest-agent for proxmox integration 2025-04-18 13:16:51 -04:00
Ibrahim Mkusa
11bad6da55 Do not install youcompleteme 2025-04-18 13:12:48 -04:00
Ibrahim Mkusa
af112e0eb0 vim-plug install and fixes 2025-04-18 12:58:32 -04:00
Ibrahim Mkusa
5d037ce298 bug fixes;local repo ansible not updated 2025-04-18 12:26:44 -04:00
Ibrahim Mkusa
0aeed1ae8f cleanup obsolete settings 2024-12-04 08:55:05 -05:00
Ibrahim Mkusa
dd9a54dc8b use GH actions descriptively 2024-11-04 18:38:33 -05:00
Ibrahim Mkusa
180ff62783
Update README.md 2024-11-04 18:09:35 -05:00
Ibrahim Mkusa
381f51ef73 Merge pull request #1 from iskm/iskm-patch-1
Add GH Action to run linters on repo
2024-11-04 17:53:53 -05:00
8 changed files with 51 additions and 24 deletions

View File

@ -1,9 +1,10 @@
---
name: dots
on:
push: main
pull_request: main
name: tests
on:
push:
branches:
- main
pull_request: null
permissions: {}
@ -27,6 +28,6 @@ jobs:
fetch-depth: 0
- name: Super-linter
uses: super-linter/super-linter@v7.1.0
uses: super-linter/super-linter@v7.3.0
env:
GITHUB_TOKEN: ${{ secrets.SUPERLINTER }}

View File

@ -1,3 +1,5 @@
![tests](https://github.com/iskm/dots/actions/workflows/tests.yml/badge.svg)
# dotfiles
Quick configs i can't live without on my machines.

View File

@ -17,7 +17,7 @@ shopt -s histappend
shopt -s cdspell
# solarized directory color listings
eval `dircolors $HOME/.dir_colors`
# eval `dircolors $HOME/.dir_colors`
# tmuxifier
eval "$(starship init bash)"
# eval "$(starship init bash)"

View File

@ -44,8 +44,7 @@ fi
# work around for fzf
set -o vi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
eval "$(fzf --bash)"
# tmuxifier
eval "$(tmuxifier init -)"

View File

@ -1,10 +1,7 @@
#!/usr/bin/env bash
# Author : Ibrahim Mkusa
# Author: Ibrahim Mkusa
# Description: installs and sets up core environment for my dev work on servers
set -e # subshells inherit environment from parent
function usage() {
echo "./install #installs and setups this environment"
echo "./install undo #removes all configs"
@ -20,36 +17,60 @@ if [[ -f /etc/os-release ]]; then
echo "Running on debian-family.."
package_manager=apt
vim="vim-nox"
firewall="ufw"
;;
fedora)
echo "Running on debian-family.."
package_manager=fedora
echo "Running on rpm-family.."
package_manager=dnf
vim="vim-enhanced"
ansible="ansible-core"
firewall="" #firewall & firewall-cmd installed by default on rpm OSes
;;
*)
echo "Running on best-guess"
package_manager=apt
vim="vim-nox"
firewall="ufw"
;;
esac
else
echo "You are running an unrecognized family of os. Quitting..."
exit 1
fi
# could have used a case, but i prefer the if statement
if [[ -z "$1" ]]; then
echo "Installing packages"
sudo "$package_manager" install -y "$vim" git stow curl ranger tmux
sudo "$package_manager" install -y "$vim" git stow curl ranger tmux \
qemu-guest-agent $firewall cloud-init
# firewall rules
sudo $firewall allow ssh
# install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# backup current configs
[[ -f ~/.bashrc ]] && mv ~/.bashrc ~/.bashrc.bak || echo "bashrc ~exists"
[[ -f ~/.bash_profile ]] && mv ~/.bash_profile ~/.bash_profile.bak || echo ".bash_profile ~exists"
# use gnu stow to symlink config files to home directory
stow bash git ranger shellenv tmux vim
stow bash ranger shellenv tmux vim
# install everything via plug "the vim package manager"
vim +PlugInstall +qall
elif [[ undo = "$1" ]]; then
echo "undoing"
stow -D bash git ranger shellenv tmux vim
elif [[ wipe = "$1" ]]; then
stow -D bash git ranger shellenv tmux vim
sudo "$package_manager" remove "$vim" git stow curl ranger tmux
echo "wiping"
elif [[ "$1" = "help" ]]; then
usage
fi
# extras for tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || true

View File

@ -123,4 +123,4 @@ alias tpmux='git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'
alias fd='fdfind'
# k8s
alias kubectl="minikube kubectl --"
# alias kubectl="minikube kubectl --"

View File

@ -14,3 +14,7 @@ pdfmerge() {
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTTINGS=/prepress\
-sOutputFile=$@ ;
}
apdoc () {
ansible-doc $1 | grep EXAMPLES -A 100 | less
}

View File

@ -22,7 +22,7 @@ endfunction
""" Plugins
call plug#begin('~/.vim/plugged')
""" core
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') } " completion engine for vim
"Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') } " completion engine for vim
Plug 'flazz/vim-colorschemes' " color scheme pack
Plug 'sheerun/vim-polyglot' " language pack for vim
Plug 'w0rp/ale' " Asynchronous linter