Skip to content

Commit 09f637a

Browse files
committed
add packages install, fix vim setup and others
1 parent da5e19a commit 09f637a

File tree

7 files changed

+57
-12
lines changed

7 files changed

+57
-12
lines changed

Makefile.apt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: default
2+
default:
3+
sudo apt update
4+
sudo apt install -y \
5+
ca-certificates \
6+
cargo \
7+
curl \
8+
fish \
9+
git \
10+
gnupg \
11+
lsb-release \
12+
ripgrep \
13+
tmux \
14+
vim

Makefile.fish

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ config:
1313
.PHONY: fisher-install
1414
fisher-install:
1515
curl https://git.io/fisher --create-dirs -sLo ${HOME}/.config/fish/functions/fisher.fish
16+
fish -c 'fisher install jorgebucaran/nvm.fish'
1617

1718
# https://github.com/oh-my-fish/oh-my-fish/
1819
.PHONY: omf-install
1920
omf-install:
20-
curl -L https://get.oh-my.fish | fish
21+
mkdir -p ${HOME}/.local/share/fonts
22+
mkdir -p ${HOME}/.config/fontconfig/conf.d
23+
curl -L "https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf" -o "${HOME}/.local/share/fonts/PowerlineSymbols.otf"
24+
curl -L "https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf" -o "${HOME}/.config/fontconfig/conf.d/10-powerline-symbols.conf"
25+
fc-cache -vf ${HOME}/.local/share/fonts/
26+
27+
curl -L "https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install" | fish
2128
fish -c 'omf install bobthefish'

Makefile.k8s

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
# vim:filetype=make
22

3-
KUBECTLVERSION=v1.16.6
4-
KUBECTLURL=https://storage.googleapis.com/kubernetes-release/release/${KUBECTLVERSION}/bin/linux/amd64/kubectl
5-
63
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
74

8-
.PHONY: install
9-
install:
10-
sudo rm -f /usr/local/bin/kubectl
11-
sudo curl -L ${KUBECTLURL} -o /usr/local/bin/kubectl
12-
sudo chmod +x /usr/local/bin/kubectl
5+
.PHONY: install-kubectl
6+
install-kubectl:
7+
$(eval LATEST=$(shell curl -L -s https://dl.k8s.io/release/stable.txt))
8+
curl -vLO "https://dl.k8s.io/release/$(LATEST)/bin/linux/amd64/kubectl"
9+
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
10+
11+
.PHONY: install-krew
12+
install-krew:
13+
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew-linux_amd64.tar.gz"
14+
tar xzf krew-linux_amd64.tar.gz
15+
./krew-linux_amd64 install krew
16+
17+
.PHONY: install-plugins
18+
install-plugins:
19+
kubectl krew install node-shell
20+
kubectl krew install ns
21+
kubectl krew install neat
1322

1423
.PHONY: fish
1524
fish:

Makefile.snap

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.PHONY: default
2+
default:
3+
sudo snap install \
4+
brave
5+
6+
.PHONY: messaging
7+
messaging:
8+
sudo snap install --classic slack
9+
sudo snap install \
10+
zoom-client \
11+
telegram-desktop

Makefile.vim

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ vimrc:
1010
ln -s ${ROOT_DIR}/dotfiles/.vimrc ${HOME}/.vimrc
1111

1212
.PHONY: vundle-install
13-
vundle-install: vimrc
13+
vundle-install:
1414
ifeq (,$(wildcard ${HOME}/.vim/bundle/Vundle.vim))
1515
mkdir -p ${HOME}/.vim/bundle/Vundle.vim
1616
git clone ${VUNDLEREPO} ${HOME}/.vim/bundle/Vundle.vim
1717
endif
1818
vim +PluginInstall +qall
1919

2020
.PHONY: coc-install
21-
coc-install: vimrc vundle-install
21+
coc-install:
2222
vim -c ":CocInstall coc-json coc-yaml coc-tsserver coc-eslint coc-prettier coc-solargraph"
2323
rm -f ${HOME}/.vim/coc-settings.json
24-
ln -s ${ROOT_DIR}/dotfiles/coc-settings.json ${HOME}/.vim/coc-settings.json
24+
ln -s ${ROOT_DIR}/vimrc/coc-settings.json ${HOME}/.vim/coc-settings.json

fish/functions/mql-k8s.fish

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ function get_running_pods_name
1717
kubectl get pods --field-selector=status.phase=Running -o=jsonpath='{range .items[*]}{@.metadata.name}{"\n"}{end}'
1818
end
1919

20+
if not contains $HOME/.krew/bin/ $PATH
21+
set PATH $PATH $HOME/.krew/bin/
22+
end
23+
2024
## kshell regex [command]
2125
function kshell
2226
set -l pod (get_running_pods_name | grep -E $argv[1] | head -1)
File renamed without changes.

0 commit comments

Comments
 (0)