Compare commits
12 Commits
7836bb1761
...
fe6642402b
Author | SHA1 | Date | |
---|---|---|---|
|
fe6642402b | ||
|
a50a9359ad | ||
|
2fe787a370 | ||
|
d4c31d32d9 | ||
|
5aad94e71b | ||
|
33c51aa0a6 | ||
7176baf0bc | |||
18ce1f6d7e | |||
058c4f473c | |||
1e20a91e84 | |||
0e58fa99f4 | |||
|
2cae0f7d03 |
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Git
|
||||
if [ -x /usr/bin/git ]
|
||||
then
|
||||
if [ -x /usr/bin/git ]; then
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gca='git commit -a'
|
||||
alias gf='git fetch'
|
||||
alias gu='git pull'
|
||||
alias gp='git pull && git push'
|
||||
alias gd='git diff'
|
||||
|
@ -1,11 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (which kubectl &> /dev/null)
|
||||
if (command -v kubectl &> /dev/null)
|
||||
then
|
||||
|
||||
# activate completion
|
||||
source <(kubectl completion bash)
|
||||
|
||||
# create a quick alias
|
||||
alias k=kubectl
|
||||
alias ks="kubectl --namespace kube-system"
|
5
aliases.d/lazygit
Normal file
5
aliases.d/lazygit
Normal file
@ -0,0 +1,5 @@
|
||||
# Lazygit
|
||||
if ( which lazygit &> /dev/null )
|
||||
then
|
||||
alias lg='lazygit'
|
||||
fi
|
5
aliases.d/lsd
Normal file
5
aliases.d/lsd
Normal file
@ -0,0 +1,5 @@
|
||||
# LSD
|
||||
if ( command -v lsd &> /dev/null )
|
||||
then
|
||||
alias ls='lsd'
|
||||
fi
|
@ -1,9 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Vim Editor
|
||||
if [ -x /usr/bin/vim ]
|
||||
if (command -v nvim &> /dev/null)
|
||||
then
|
||||
alias vi='vim -p'
|
||||
alias view='vim -R'
|
||||
alias vless='vim -u /usr/share/vim/vim*/macros/less.vim'
|
||||
alias vim=nvim
|
||||
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,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (which helm &> /dev/null)
|
||||
if (command -v helm &> /dev/null)
|
||||
then
|
||||
|
||||
# activate completion
|
||||
source <( helm completion bash )
|
||||
|
||||
fi
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ( which kubectl ) &> /dev/null
|
||||
if (command -v kubectl &> /dev/null)
|
||||
then
|
||||
source <(kubectl completion bash)
|
||||
fi
|
||||
|
6
completion.d/poetry
Normal file
6
completion.d/poetry
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ( command -v poetry &> /dev/null )
|
||||
then
|
||||
source <(poetry completions bash)
|
||||
fi
|
@ -1,9 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (which stern &> /dev/null)
|
||||
if (command -v stern &> /dev/null)
|
||||
then
|
||||
|
||||
# activate completion
|
||||
source <(stern --completion bash)
|
||||
|
||||
fi
|
24
rc.d/broot
24
rc.d/broot
@ -1 +1,23 @@
|
||||
[[ -f ~/.config/broot/launcher/bash/br ]] && source ~/.config/broot/launcher/bash/br
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user