Whta @AitBits said. (Open ~/.p10k.zsh
, search for POWERLEVEL9K_SHORTEN_STRATEGY
and change the value of this parameter to truncate_to_last
)
Alternatively, you can try changing the value of POWERLEVEL9K_DIR_MAX_LENGTH
to 1
.
Whta @AitBits said. (Open ~/.p10k.zsh
, search for POWERLEVEL9K_SHORTEN_STRATEGY
and change the value of this parameter to truncate_to_last
)
Alternatively, you can try changing the value of POWERLEVEL9K_DIR_MAX_LENGTH
to 1
.
.ONESHELL: | |
.SHELL := /bin/bash | |
.PHONY: ALL | |
.DEFAULT_GOAL := help | |
help: | |
@echo "Available targets:" | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |
install: ## Install required tools for local environment |
Install hyperhit and minikube on macOS:
brew update
brew install hyperkit
brew install minikube
Create minikube cluster:
To get cluster information, run kubectl cluster-info
For deploy nginx image from dockerhub, run kubectl create deployment nginx --image nginx
For expose port publicly, run kubectl expose deployment nginx --port 80 --type=NodePort
echo '-------> Docker' | |
sudo sh -c "$(curl -fsSL https://get.docker.com)" | |
sudo groupadd docker | |
sudo usermod -aG docker naim | |
newgrp docker | |
echo '-------> Docker Compose' | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
# |- Configure users and groups | |
groups: sudo, adm, docker | |
# |- Run arbitrary commands. Each item can be either a list or a string. All commands must be proper yaml | |
runcmd: | |
- [ sh, -c, 'curl -sSL https://get.docker.com/ | sh' ] | |
- [ sh, -c, 'sudo curl -L https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep "tag_name" | cut -d \" -f4)/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose' ] | |
- [ sh, -c, 'sudo chmod +x /usr/local/bin/docker-compose' ] | |
- [ sh, -c, 'sudo docker run -d nginx:latest' ] |
ethernets: | |
ens3: | |
addresses: | |
- 192.168.0.75/24 | |
gateway4: 192.168.0.1 | |
nameservers: | |
addresses: | |
- 1.1.1.1 | |
- 8.8.8.8 | |
version: 2 |
#cloud-config | |
# |- Set timezone | |
timezone: Europe/Berlin | |
# |- Update /etc/hosts | |
manage_etc_hosts: true | |
# |- Update hostname and fqdn | |
hostname: ubuntu-cloud |
echo -n 'username' | base64 |