Compare commits
No commits in common. "main" and "iskm-patch-1" have entirely different histories.
main
...
iskm-patch
@ -1,10 +1,9 @@
|
|||||||
---
|
---
|
||||||
name: tests
|
name: dots
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push: main
|
||||||
branches:
|
pull_request: main
|
||||||
- main
|
|
||||||
pull_request: null
|
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
@ -28,6 +27,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Super-linter
|
- name: Super-linter
|
||||||
uses: super-linter/super-linter@v7.3.0
|
uses: super-linter/super-linter@v7.1.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.SUPERLINTER }}
|
GITHUB_TOKEN: ${{ secrets.SUPERLINTER }}
|
@ -1,5 +1,3 @@
|
|||||||

|
|
||||||
|
|
||||||
# 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,7 +44,8 @@ fi
|
|||||||
# work around for fzf
|
# work around for fzf
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|
||||||
eval "$(fzf --bash)"
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
# tmuxifier
|
# tmuxifier
|
||||||
eval "$(tmuxifier init -)"
|
eval "$(tmuxifier init -)"
|
||||||
|
|
||||||
|
43
install.sh
43
install.sh
@ -1,7 +1,10 @@
|
|||||||
#!/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"
|
||||||
@ -17,60 +20,36 @@ 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 rpm-family.."
|
echo "Running on debian-family.."
|
||||||
package_manager=dnf
|
package_manager=fedora
|
||||||
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 ranger shellenv tmux vim
|
stow bash git 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,7 +14,3 @@ 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