Newest version of dotfiles with Ghostty, Fish, kickstart vim and zsh updates
This commit is contained in:
34
.config/fish/conf.d/dev-helpers.fish
Normal file
34
.config/fish/conf.d/dev-helpers.fish
Normal file
@@ -0,0 +1,34 @@
|
||||
# Quick project setup
|
||||
function mkproj
|
||||
mkdir -p $argv[1]
|
||||
cd $argv[1]
|
||||
git init
|
||||
touch README.md .gitignore
|
||||
echo "# $argv[1]" > README.md
|
||||
end
|
||||
|
||||
# Docker cleanup
|
||||
function docker-cleanup
|
||||
docker system prune -af
|
||||
docker volume prune -f
|
||||
end
|
||||
|
||||
# Kubernetes context info
|
||||
function kinfo
|
||||
echo "Context: "(kubectl config current-context)
|
||||
echo "Namespace: "(kubectl config view --minify -o jsonpath='{..namespace}')
|
||||
kubectl get nodes --no-headers | wc -l | xargs echo "Nodes:"
|
||||
end
|
||||
|
||||
# Quick YAML validation
|
||||
function yaml-check
|
||||
python3 -c "import yaml; yaml.safe_load(open('$argv[1]'))"
|
||||
end
|
||||
|
||||
# Environment file loader
|
||||
function loadenv
|
||||
if test -f .env
|
||||
export (cat .env | grep -v '^#' | xargs)
|
||||
echo "Loaded .env"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user