mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
zsh: migrate sh -> zsh
This commit is contained in:
parent
904b0227b7
commit
4a985b2ffa
|
@ -6,11 +6,11 @@ A set of zsh dotfiles based on antibody and oh-my-zsh
|
|||
|
||||
├── README.md
|
||||
├──────── Main files ────────
|
||||
│ ├── aliases.sh
|
||||
│ ├── aliases.zsh
|
||||
│ │ └── aliases definitions (sources `~/.dotfiles_aliases`)
|
||||
│ ├── colors.sh
|
||||
│ ├── colors.zsh
|
||||
│ │ └── ANSI color escapes
|
||||
│ ├── functions.sh
|
||||
│ ├── functions.zsh
|
||||
│ │ └── contains function definitions (sources `~/.dotfiles_functions`)
|
||||
│ ├── ansible
|
||||
│ │ └── ansible playboooks/config
|
||||
|
|
|
@ -3,7 +3,7 @@ export LANG=en_US.UTF-8
|
|||
|
||||
# Check for update, set DISABLE_UPDATE_PROMPT=true to disable the prompt and automatically update
|
||||
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
||||
source "${DOTFILES}/check_for_update.sh"
|
||||
source "${DOTFILES}/check_for_update.zsh"
|
||||
fi
|
||||
|
||||
# theme-related variables
|
||||
|
@ -12,10 +12,6 @@ export ZSH_THEME="brethil"
|
|||
export DISABLE_UNTRACKED_FILES_DIRTY=true
|
||||
export VIRTUAL_ENV_DISABLE_PROMPT=true
|
||||
|
||||
# Setup completion style
|
||||
source $DOTFILES/completion_style.zsh
|
||||
|
||||
|
||||
# Source all zsh plugins
|
||||
source <(antibody init)
|
||||
export ANTIBODY="$(antibody home)"
|
||||
|
@ -81,15 +77,5 @@ alias aledit='$EDITOR ~/.dotfiles_aliases.sh'
|
|||
|
||||
export p="${HOME}/projects"
|
||||
|
||||
# Extras
|
||||
functions_file=$DOTFILES/functions.sh # Function definitions
|
||||
aliases_file=$DOTFILES/aliases.sh # Aliases definitions
|
||||
colors_file=$DOTFILES/colors.sh # Colors definitions
|
||||
|
||||
# Source extras
|
||||
if [ -f "$functions_file" ]; then source "$functions_file"; else echo "[brethil-dotfiles] Couldn't load functions: $functions_file"; fi
|
||||
if [ -f "$aliases_file" ]; then source "$aliases_file"; else echo "[brethil-dotfiles] Couldn't load aliases: $aliases_file"; fi
|
||||
if [ -f "$colors_file" ]; then source "$colors_file"; else echo "[brethil-dotfiles] Couldn't load colors: $colors_file"; fi
|
||||
|
||||
### SETUP PATHS ####
|
||||
export PATH=$PATH:$HOME/bin
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
## Selfupdate
|
||||
function dotfiles_selfupdate
|
||||
{
|
||||
(. $DOTFILES/check_for_update.sh && _upgrade_dotfiles)
|
||||
(. $DOTFILES/check_for_update.zsh && _upgrade_dotfiles)
|
||||
}
|
||||
|
||||
## get cheat sheets for commands from cheat.sh. Usage: cheat commandname
|
Loading…
Reference in New Issue
Block a user