Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions modules/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
kgi = ''
kubectl get ingress "$@" -o custom-columns="NAME:.metadata.name,HOST:.spec.rules[*].host,PATH:.spec.rules[*].http.paths[*].path,BACKEND:.spec.rules[*].http.paths[*].backend.service.name"
'';
jj = ''
if git rev-parse --is-inside-work-tree &>/dev/null; then
local email name
email=$(git config user.email 2>/dev/null)
name=$(git config user.name 2>/dev/null)
if [[ -n "$email" && -n "$name" ]]; then
command jj --config "user.email=\"$email\"" --config "user.name=\"$name\"" "$@"
return
fi
Comment on lines +46 to +52
fi
command jj "$@"
'';
};
enableCompletion = true;
completionInit = ''
Expand Down