Compare commits

..

No commits in common. "08916f80b6080a71bf996421854dc1116da3d863" and "9e5fcc649e30a8d2d0188bb1ff6901e72e121f77" have entirely different histories.

10 changed files with 27 additions and 54 deletions

View File

@ -1,5 +0,0 @@
#!/bin/bash
if (command -v bat &>/dev/null); then
alias cat=bat
fi

View File

@ -6,16 +6,10 @@ if (command -v kubectl &>/dev/null); then
alias k="kubectl" alias k="kubectl"
alias kg="kubectl get" alias kg="kubectl get"
alias kd="kubectl describe" alias kd="kubectl describe"
alias ks="kubectl --namespace kube-system" alias ks="kubectl --namespace kube-system"
alias ksg="kubectl --namespace kube-system get"
alias ksd="kubectl --namespace kube-system describe"
alias kga="kubectl get --all-namespaces" alias kga="kubectl get --all-namespaces"
alias kuc="kubectl config unset current-context" alias kuc="kubectl config unset current-context"
alias kun="kubectl config set-context --current --namespace=" alias kun="kubectl config set-context --current --namespace="
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"
alias kgnodes="kubectl get nodes --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone"
alias kgmasters="kubectl get nodes --selector 'node-role.kubernetes.io/control-plane' --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone"
alias kgworkers="kubectl get nodes --selector '!node-role.kubernetes.io/control-plane' --label-columns topology.kubernetes.io/region,topology.kubernetes.io/zone"
alias kgtaints="kubectl get nodes --output custom-columns=NAME:.metadata.name,TAINTS:.spec.taints"
fi fi

View File

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

View File

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

View File

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

View File

@ -8,9 +8,7 @@ if (command -v nvim &>/dev/null); then
fi fi
# PAGER # PAGER
if (command -v less &>/dev/null); then export PAGER=less
export PAGER=less
fi
# MANPAGER # MANPAGER
if (command -v nvim &>/dev/null); then if (command -v nvim &>/dev/null); then
@ -20,11 +18,7 @@ elif (command -v bat &>/dev/null); then
fi fi
# TERMINAL # TERMINAL
if (command -v kitty &>/dev/null); then export TERMINAL=kitty
export TERMINAL=kitty
fi
# BROWSER # BROWSER
if (command -v firefox &>/dev/null); then export BROWSER=firefox
export BROWSER=firefox
fi

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
if (command -v keychain &>/dev/null); then if $(which keychain &> /dev/null)
eval "$(keychain --eval --noask ~/.ssh/{id_ed25519,id_rsa_native})" then
eval $(keychain --agents ssh,gpg --eval)
fi fi

View File

@ -4,6 +4,7 @@
# git clone https://github.com/riywo/anyenv $HOME/.anyenv # git clone https://github.com/riywo/anyenv $HOME/.anyenv
if (which anyenv &>/dev/null); then if ( which anyenv &> /dev/null )
then
eval "$(anyenv init -)" eval "$(anyenv init -)"
fi fi

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if (command -v mcfly &>/dev/null); then if (which mcfly &>/dev/null); then
export MCFLY_PROMPT=" " export MCFLY_PROMPT=""
export MCFLY_INTERFACE_VIEW=BOTTOM export MCFLY_INTERFACE_VIEW=BOTTOM
export MCFLY_RESULTS=50 export MCFLY_RESULTS=50
export MCFLY_RESULTS_SORT=LAST_RUN export MCFLY_RESULTS_SORT=LAST_RUN

View File

@ -1,14 +1,17 @@
#!/bin/bash #!/bin/bash
# GNU Screen stuff # GNU Screen stuff
if (command -v tmux &>/dev/null); then if ( which tmux &> /dev/null )
if [ "$(pgrep -u "$UID" "tmux" | wc -l)" -gt 0 ]; then then
if [[ $TERM != screen* ]]; then if [ $(pgrep -u "$UID" "tmux" | wc -l) -gt 0 ]
then
if [[ $TERM != screen* ]]
then
nb_sessions=$(tmux list-session | wc -l) nb_sessions=$(tmux list-session | wc -l)
nb_sessions_attached=$(tmux list-session | grep -c "attached") nb_sessions_attached=$(tmux list-session | grep "attached" | wc -l)
nb_sessions_detached=$(tmux list-session | grep -c -v "attached") nb_sessions_detached=$(tmux list-session | grep -v "attached" | wc -l)
echo_info "Found ${nb_sessions} tmux session(s)" echo_reverse "Found ${nb_sessions} tmux session(s)"
echo " * ${nb_sessions_attached} attached" echo " * ${nb_sessions_attached} attached"
tmux list-sessions | grep "attached" | sed -e 's/^/ - /' tmux list-sessions | grep "attached" | sed -e 's/^/ - /'
@ -19,3 +22,4 @@ if (command -v tmux &>/dev/null); then
fi fi
fi fi
fi fi