Compare commits
12 Commits
iskm-patch
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6a53575d6e | ||
![]() |
4fd788fdf1 | ||
![]() |
219c8ed90b | ||
![]() |
1999df1350 | ||
![]() |
82cf1547fa | ||
![]() |
11bad6da55 | ||
![]() |
af112e0eb0 | ||
![]() |
5d037ce298 | ||
![]() |
0aeed1ae8f | ||
![]() |
dd9a54dc8b | ||
![]() |
180ff62783 | ||
![]() |
381f51ef73 |
@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
name: dots
|
name: tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: main
|
push:
|
||||||
pull_request: main
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request: null
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
@ -27,6 +28,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Super-linter
|
- name: Super-linter
|
||||||
uses: super-linter/super-linter@v7.1.0
|
uses: super-linter/super-linter@v7.3.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.SUPERLINTER }}
|
GITHUB_TOKEN: ${{ secrets.SUPERLINTER }}
|
@ -1,3 +1,5 @@
|
|||||||
|

|
||||||
|
|
||||||
# dotfiles
|
# dotfiles
|
||||||
Quick configs i can't live without on my machines.
|
Quick configs i can't live without on my machines.
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ shopt -s histappend
|
|||||||
shopt -s cdspell
|
shopt -s cdspell
|
||||||
|
|
||||||
# solarized directory color listings
|
# solarized directory color listings
|
||||||
eval `dircolors $HOME/.dir_colors`
|
# eval `dircolors $HOME/.dir_colors`
|
||||||
|
|
||||||
# tmuxifier
|
# tmuxifier
|
||||||
eval "$(starship init bash)"
|
# eval "$(starship init bash)"
|
||||||
|
@ -44,8 +44,7 @@ fi
|
|||||||
# work around for fzf
|
# work around for fzf
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
eval "$(fzf --bash)"
|
||||||
|
|
||||||
# tmuxifier
|
# tmuxifier
|
||||||
eval "$(tmuxifier init -)"
|
eval "$(tmuxifier init -)"
|
||||||
|
|
||||||
|
41
install.sh
41
install.sh
@ -1,10 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Author: Ibrahim Mkusa
|
# Author: Ibrahim Mkusa
|
||||||
# Description: installs and sets up core environment for my dev work on servers
|
# Description: installs and sets up core environment for my dev work on servers
|
||||||
|
|
||||||
set -e # subshells inherit environment from parent
|
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "./install #installs and setups this environment"
|
echo "./install #installs and setups this environment"
|
||||||
echo "./install undo #removes all configs"
|
echo "./install undo #removes all configs"
|
||||||
@ -20,36 +17,60 @@ if [[ -f /etc/os-release ]]; then
|
|||||||
echo "Running on debian-family.."
|
echo "Running on debian-family.."
|
||||||
package_manager=apt
|
package_manager=apt
|
||||||
vim="vim-nox"
|
vim="vim-nox"
|
||||||
|
firewall="ufw"
|
||||||
;;
|
;;
|
||||||
fedora)
|
fedora)
|
||||||
echo "Running on debian-family.."
|
echo "Running on rpm-family.."
|
||||||
package_manager=fedora
|
package_manager=dnf
|
||||||
vim="vim-enhanced"
|
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
|
esac
|
||||||
else
|
else
|
||||||
echo "You are running an unrecognized family of os. Quitting..."
|
echo "You are running an unrecognized family of os. Quitting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# could have used a case, but i prefer the if statement
|
# could have used a case, but i prefer the if statement
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Installing packages"
|
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
|
# 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
|
elif [[ undo = "$1" ]]; then
|
||||||
echo "undoing"
|
echo "undoing"
|
||||||
stow -D bash git ranger shellenv tmux vim
|
stow -D bash git ranger shellenv tmux vim
|
||||||
|
|
||||||
elif [[ wipe = "$1" ]]; then
|
elif [[ wipe = "$1" ]]; then
|
||||||
stow -D bash git ranger shellenv tmux vim
|
stow -D bash git ranger shellenv tmux vim
|
||||||
sudo "$package_manager" remove "$vim" git stow curl ranger tmux
|
sudo "$package_manager" remove "$vim" git stow curl ranger tmux
|
||||||
echo "wiping"
|
echo "wiping"
|
||||||
|
|
||||||
elif [[ "$1" = "help" ]]; then
|
elif [[ "$1" = "help" ]]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# extras for tmux
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || true
|
||||||
|
@ -123,4 +123,4 @@ alias tpmux='git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'
|
|||||||
alias fd='fdfind'
|
alias fd='fdfind'
|
||||||
|
|
||||||
# k8s
|
# k8s
|
||||||
alias kubectl="minikube kubectl --"
|
# alias kubectl="minikube kubectl --"
|
||||||
|
@ -14,3 +14,7 @@ pdfmerge() {
|
|||||||
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTTINGS=/prepress\
|
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTTINGS=/prepress\
|
||||||
-sOutputFile=$@ ;
|
-sOutputFile=$@ ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apdoc () {
|
||||||
|
ansible-doc $1 | grep EXAMPLES -A 100 | less
|
||||||
|
}
|
||||||
|
@ -22,7 +22,7 @@ endfunction
|
|||||||
""" Plugins
|
""" Plugins
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
""" core
|
""" 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 'flazz/vim-colorschemes' " color scheme pack
|
||||||
Plug 'sheerun/vim-polyglot' " language pack for vim
|
Plug 'sheerun/vim-polyglot' " language pack for vim
|
||||||
Plug 'w0rp/ale' " Asynchronous linter
|
Plug 'w0rp/ale' " Asynchronous linter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user