1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

zsh: cleanup aliases sourcing

This commit is contained in:
bretello 2022-02-07 20:49:25 +01:00
parent fc4972dab3
commit 85381436cf
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
3 changed files with 2 additions and 15 deletions

View File

@ -88,13 +88,3 @@ alias dst='dvc status'
alias dstc='dvc status --cloud' alias dstc='dvc status --cloud'
alias drp='dvc repro' alias drp='dvc repro'
alias drps='dvc repro -s' alias drps='dvc repro -s'
# dotfiles user aliases
if [[ -f ~/.dotfiles_aliases ]]; then
source $HOME/.dotfiles_aliases
fi
# source ssh aliases
if [[ -f $HOME/.ssh_aliases ]]; then
source $HOME/.ssh_aliases
fi

View File

@ -94,6 +94,7 @@ source $DOTFILES/aliases.zsh
# Extras # Extras
functions_file=~/.dotfiles_functions functions_file=~/.dotfiles_functions
aliases_file=~/.dotfiles_aliases aliases_file=~/.dotfiles_aliases
ssh_file=~/.ssh_aliases
( # migration of old format ( # migration of old format
if [[ -f ${functions_file}.sh ]]; then if [[ -f ${functions_file}.sh ]]; then
@ -109,6 +110,7 @@ aliases_file=~/.dotfiles_aliases
# Source extras # Source extras
test -f "${functions_file}" && source "${functions_file}" test -f "${functions_file}" && source "${functions_file}"
test -f "${aliases_file}" && source "${aliases_file}" test -f "${aliases_file}" && source "${aliases_file}"
test -f "${ssh_file}" && source "${ssh_file}"
### SETUP PATHS #### ### SETUP PATHS ####
export PATH=$PATH:$HOME/bin export PATH=$PATH:$HOME/bin

View File

@ -352,8 +352,3 @@ make_venv(){
fi fi
} }
# # dotfiles user functions
# if [[ -f $HOME/.dotfiles_functions ]]; then
# source "$HOME/.dotfiles_functions"
# fi