mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
[shell-common] Cleanup tabs vs spaces
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
function _add-sshkey(){
|
||||
function _add-sshkey() {
|
||||
local -a identities
|
||||
|
||||
# check for .ssh folder presence
|
||||
if [[ ! -d $HOME/.ssh ]]; then
|
||||
return
|
||||
fi
|
||||
# check for .ssh folder presence
|
||||
if [[ ! -d $HOME/.ssh ]]; then
|
||||
return
|
||||
fi
|
||||
for id in $HOME/.ssh/id_ed25519_*; do
|
||||
name=$(basename $id|cut -d'_' -f3|cut -d'.' -f1)
|
||||
name=$(basename $id | cut -d'_' -f3 | cut -d'.' -f1)
|
||||
[[ ${id:-3} != 'pub' ]] && identities+=$name
|
||||
done
|
||||
|
||||
compadd $identities
|
||||
compadd $identities
|
||||
}
|
||||
compdef _add-sshkey add-sshkey
|
||||
compdef _add-sshkey add-sshkey
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Source shell common
|
||||
for f in ~/.config/shell-common/*.sh; do
|
||||
source $f;
|
||||
for f in ~/.config/shell-common/*.sh; do
|
||||
source $f
|
||||
done
|
||||
|
||||
# Source zsh specific files
|
||||
for f in ~/.config/zsh/*.zsh; do
|
||||
source $f;
|
||||
for f in ~/.config/zsh/*.zsh; do
|
||||
source $f
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user