Add some possible-missing-file checks.

Use newer starship install method.
Add empty files.vim
This commit is contained in:
Sage Vaillancourt 2022-10-18 02:35:06 +00:00
parent bb30274e25
commit 8032e27573
2 changed files with 31 additions and 20 deletions

8
.zshrc
View File

@ -1,5 +1,7 @@
source ~/.zsh_local
if test -f /usr/share/doc/fzf/examples/completion.zsh &> /dev/null; then
source /usr/share/doc/fzf/examples/completion.zsh
fi
HISTFILE=~/.histfile
HISTSIZE=10000
@ -80,6 +82,12 @@ function getdot {
cd -
}
if which starship &> /dev/null; then
eval "$(starship init zsh)"
fi
if test -f ~/.cargo/env; then
source ~/.cargo/env
fi
source ~/.shell_aliases

View File

@ -5,6 +5,9 @@ moving_files="$(find $SCRIPT_DIR -mindepth 1 -maxdepth 1 -type f -not -name "cop
moving_files=$(echo -e "$moving_files\n$(find $SCRIPT_DIR/.vim/colors/ -mindepth 1)")
moving_files=$(echo -e "$moving_files\n$(find $SCRIPT_DIR/.config/ -mindepth 1)")
mkdir -p $HOME/.vim/user/
touch $HOME/.vim/user/files.vim
home_files=""
for f in $moving_files; do
home_file="$HOME$(echo $f | sed "s@$SCRIPT_DIR@@")"
@ -55,7 +58,7 @@ if [[ "$1" == "--install" ]]; then
if command -v cargo; then
cargo install bat
fi
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
curl -sS https://starship.rs/install.sh | sh
echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
echo "You may wish to install fzf"
fi