clean up bootstrap scripts and notes

This commit is contained in:
Noah Masur 2020-11-15 09:47:29 -05:00
parent cec0f4789c
commit ec53a7ed7f
6 changed files with 48 additions and 49 deletions

View File

@ -33,17 +33,17 @@ function notes --description "Notes functions"
cd -
end
function wiki --description "Open vimwiki file"
function note --description "Edit or create a note" -a "filename"
cd $HOME/Documents/notes
if test -n "$filename"
vim $filename.md
else
set file (ls | fzf)
if [ $status -eq 0 ]
vim $file
end
cd -
end
function note --description "Edit or create a note"
vim ~/Documents/notes/$argv[1].md
cd -
end
abbr -a sn 'syncnotes'

View File

@ -4,35 +4,6 @@ DOTS=$(dirname "$0")/..
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
check_for_zsh() {
if ! (echo "$SHELL" | grep zsh > /dev/null)
then
echo "Switch to using zsh before continuing"
echo ""
echo "MacOS Instructions:"
echo "System Preferences > Users & Groups > Unlock"
echo "Right-click on user, Advanced Options..."
echo "Login shell: /bin/zsh"
exit 1
fi
echo "zsh ✓"
}
check_for_ohmyzsh() {
if [ ! -d ~/.oh-my-zsh ]
then
echo "oh-my-zsh ✕"
echo ""
echo "Install oh-my-zsh before continuing"
echo "You can run the script: install_ohmyzsh"
echo ""
exit 1
fi
echo "oh-my-zsh ✓"
}
install_xcode() {
if [ "$(uname)" = "Darwin" ]
then
@ -115,16 +86,6 @@ install_gitmux() {
echo "gitmux ✓"
}
install_spacemacs() {
emacsdir=~/.emacs.d
if ! (git -C "$emacsdir" pull > /dev/null 2>&1)
then
git clone -b develop https://github.com/syl20bnr/spacemacs "$emacsdir"
fi
echo "spacemacs ✓"
}
setup_poetry() {
poetry completions fish > $(brew --prefix)/share/fish/vendor_completions.d/poetry.fish
}
@ -143,8 +104,6 @@ echo ""
echo "consider running other scripts:"
echo " - install_casks"
echo " - configure_macos"
echo " - setup_keybase"
echo " - install_python"
echo " - install_rust"
echo " - install_cargos"
echo ""

40
scripts/saved/unused_bootstraps Executable file
View File

@ -0,0 +1,40 @@
#!/bin/sh
check_for_zsh() {
if ! (echo "$SHELL" | grep zsh > /dev/null)
then
echo "Switch to using zsh before continuing"
echo ""
echo "MacOS Instructions:"
echo "System Preferences > Users & Groups > Unlock"
echo "Right-click on user, Advanced Options..."
echo "Login shell: /bin/zsh"
exit 1
fi
echo "zsh ✓"
}
check_for_ohmyzsh() {
if [ ! -d ~/.oh-my-zsh ]
then
echo "oh-my-zsh ✕"
echo ""
echo "Install oh-my-zsh before continuing"
echo "You can run the script: install_ohmyzsh"
echo ""
exit 1
fi
echo "oh-my-zsh ✓"
}
install_spacemacs() {
emacsdir=~/.emacs.d
if ! (git -C "$emacsdir" pull > /dev/null 2>&1)
then
git clone -b develop https://github.com/syl20bnr/spacemacs "$emacsdir"
fi
echo "spacemacs ✓"
}