Compare commits

..

No commits in common. "84ffaf33d2403c870c5d6f37ddfc2ad222c0a550" and "a5671801de8c053d938561ffb026dd909653d559" have entirely different histories.

7 changed files with 6 additions and 38 deletions

View File

@ -1,5 +1,6 @@
alias cdrepo='cd ~/Repositories/'
alias cdgitlab='cd ~/Repositories/Gitlab'
alias cdgithub='cd ~/Repositories/Github'
alias cdgl=cdgitlab
alias cdgh=cdgithub
alias cdrepo='cd ~/repositories/'
alias cddns='cd ~/repositories/dns && git pull'
alias cdfai='cd ~/repositories/fai && git pull'
alias cdpuppet='cd ~/repositories/puppet && git pull'
alias cdhiera='cd ~/repositories/hiera && git pull'
alias cdshinken='cd ~/repositories/shinken && git pull'

View File

@ -8,16 +8,9 @@ if (command -v kubectl &>/dev/null); then
alias kd="kubectl describe"
alias ks="kubectl --namespace kube-system"
alias kga="kubectl get --all-namespaces"
alias kuc="kubectl config unset current-context"
alias kgworkers="kubectl get nodes --selector '!node-role.kubernetes.io/control-plane' --label-columns heat,topology.kubernetes.io/zone,topology.kubernetes.io/region --sort-by metadata.labels.heat"
# add completion for the alias as well
complete -o default -F __start_kubectl k
complete -o default -F __start_kubectl ks
# Experimental
complete -o default -F _complete_alias kg
complete -o default -F _complete_alias kd
complete -o default -F _complete_alias kga
fi

View File

@ -9,8 +9,3 @@ then
alias td='task done'
alias ts='task sync'
fi
if (command -v taskwarrior-tui &> /dev/null)
then
alias tu='taskwarrior-tui'
fi

View File

@ -1,7 +1,5 @@
#!/bin/bash
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
if [ -f "$HOME"/.bash/profile ]; then source "$HOME"/.bash/profile; fi
if [ -d "$HOME"/.bash/profile ]; then for file in "$HOME"/.bash/profile/*; do source "$file"; done; fi
if [ -d "$HOME"/.bash/profile.d ]; then for file in "$HOME"/.bash/profile.d/*; do source "$file"; done; fi

9
bashrc
View File

@ -11,9 +11,6 @@ if [[ $- != *i* ]]; then
return
fi
# Safe loops for empty dirs
shopt -s nullglob
# Source custom libs
if [ -d "$HOME"/.bash/libs ]; then for lib in "$HOME"/.bash/libs/*.bash; do source "$lib"; done; fi
@ -28,9 +25,6 @@ if [ -f "$HOME"/.bash_aliases ]; then source "$HOME"/.bash_aliases; fi
if [ -f "$HOME"/.bash/aliases ]; then source "$HOME"/.bash/aliases; fi
if [ -d "$HOME"/.bash/aliases ]; then for file in "$HOME"/.bash/aliases/*; do source "$file"; done; fi
if [ -d "$HOME"/.bash/aliases.d ]; then for file in "$HOME"/.bash/aliases.d/*; do source "$file"; done; fi
if (command -v _complete_alias &>/dev/null); then
for alias in $(alias -p | awk '{print $2}' | awk -F= '{print $1}'); do complete -o default -F _complete_alias "$alias"; done
fi
# Source bash completion definitions
for file in /etc/bash*completion /etc/profile.d/bash*completion*; do source "$file"; done
@ -42,6 +36,3 @@ if [ -d "$HOME"/.bash/completion.d ]; then for file in "$HOME"/.bash/completion.
# Late customization
if [ -d "$HOME"/.bash/rc.after.d ]; then for file in "$HOME"/.bash/rc.after.d/*; do source "$file"; done; fi
# Restore option nullglob to normal
shopt -u nullglob

View File

@ -1,5 +0,0 @@
#!/bin/bash
if (command -v kind &>/dev/null); then
source <(kind completion bash)
fi

View File

@ -1,5 +0,0 @@
#!/bin/bash
if (command -v podman &>/dev/null); then
source <(podman completion bash)
fi