Compare commits
No commits in common. "fe6642402b72aa3fa6fe9a7b1c3e3d0a92368448" and "7836bb1761de38d8bd9007b8f117d5a184a9e52c" have entirely different histories.
fe6642402b
...
7836bb1761
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
if [ -x /usr/bin/git ]; then
|
if [ -x /usr/bin/git ]
|
||||||
|
then
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
alias gca='git commit -a'
|
alias gca='git commit -a'
|
||||||
alias gf='git fetch'
|
|
||||||
alias gu='git pull'
|
alias gu='git pull'
|
||||||
alias gp='git pull && git push'
|
alias gp='git pull && git push'
|
||||||
alias gd='git diff'
|
alias gd='git diff'
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# Lazygit
|
|
||||||
if ( which lazygit &> /dev/null )
|
|
||||||
then
|
|
||||||
alias lg='lazygit'
|
|
||||||
fi
|
|
@ -1,5 +0,0 @@
|
|||||||
# LSD
|
|
||||||
if ( command -v lsd &> /dev/null )
|
|
||||||
then
|
|
||||||
alias ls='lsd'
|
|
||||||
fi
|
|
@ -1,20 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Vim Editor
|
# Vim Editor
|
||||||
if (command -v nvim &> /dev/null)
|
if [ -x /usr/bin/vim ]
|
||||||
then
|
then
|
||||||
alias vim=nvim
|
alias vi='vim -p'
|
||||||
|
alias view='vim -R'
|
||||||
|
alias vless='vim -u /usr/share/vim/vim*/macros/less.vim'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if (command -v lvim &>/dev/null); then
|
|
||||||
# alias vim=lvim
|
|
||||||
# elif (command -v nvim &>/dev/null); then
|
|
||||||
# alias vim=nvim
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# if [ -x /usr/bin/vim ]
|
|
||||||
# then
|
|
||||||
# alias vi='vim -p'
|
|
||||||
# alias view='vim -R'
|
|
||||||
# alias vless='vim -u /usr/share/vim/vim*/macros/less.vim'
|
|
||||||
# fi
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v kubectl &> /dev/null)
|
if ( which kubectl ) &> /dev/null
|
||||||
then
|
then
|
||||||
source <(kubectl completion bash)
|
source <(kubectl completion bash)
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if ( command -v poetry &> /dev/null )
|
|
||||||
then
|
|
||||||
source <(poetry completions bash)
|
|
||||||
fi
|
|
24
rc.d/broot
24
rc.d/broot
@ -1,23 +1 @@
|
|||||||
#!/bin/bash
|
[[ -f ~/.config/broot/launcher/bash/br ]] && source ~/.config/broot/launcher/bash/br
|
||||||
|
|
||||||
if (command -v broot &>/dev/null); then
|
|
||||||
# This script was automatically generated by the broot program
|
|
||||||
# More information can be found in https://github.com/Canop/broot
|
|
||||||
# This function starts broot and executes the command
|
|
||||||
# it produces, if any.
|
|
||||||
# It's needed because some shell commands, like `cd`,
|
|
||||||
# have no useful effect if executed in a subshell.
|
|
||||||
function br {
|
|
||||||
local cmd cmd_file code
|
|
||||||
cmd_file=$(mktemp)
|
|
||||||
if broot --outcmd "$cmd_file" "$@"; then
|
|
||||||
cmd=$(<"$cmd_file")
|
|
||||||
rm -f "$cmd_file"
|
|
||||||
eval "$cmd"
|
|
||||||
else
|
|
||||||
code=$?
|
|
||||||
rm -f "$cmd_file"
|
|
||||||
return "$code"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
5
rc.d/git
5
rc.d/git
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if (command -v git && command -v fzf) &>/dev/null; then
|
|
||||||
function gsb { git checkout "$(git branch --all | fzf | tr -d '[:space:]')"; }
|
|
||||||
fi
|
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v helm &> /dev/null)
|
if (which helm &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# activate completion
|
||||||
source <( helm completion bash )
|
source <( helm completion bash )
|
||||||
|
|
||||||
fi
|
fi
|
@ -1,8 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v kubectl &> /dev/null)
|
if (which kubectl &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# activate completion
|
||||||
|
source <(kubectl completion bash)
|
||||||
|
|
||||||
# create a quick alias
|
# create a quick alias
|
||||||
alias k=kubectl
|
alias k=kubectl
|
||||||
alias ks="kubectl --namespace kube-system"
|
alias ks="kubectl --namespace kube-system"
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v stern &> /dev/null)
|
if (which stern &> /dev/null)
|
||||||
then
|
then
|
||||||
|
|
||||||
|
# activate completion
|
||||||
source <(stern --completion bash)
|
source <(stern --completion bash)
|
||||||
|
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user