mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
clean up bootstrap scripts and notes
This commit is contained in:
parent
cec0f4789c
commit
ec53a7ed7f
@ -33,19 +33,19 @@ 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
|
||||
set file (ls | fzf)
|
||||
if [ $status -eq 0 ]
|
||||
vim $file
|
||||
if test -n "$filename"
|
||||
vim $filename.md
|
||||
else
|
||||
set file (ls | fzf)
|
||||
if [ $status -eq 0 ]
|
||||
vim $file
|
||||
end
|
||||
end
|
||||
cd -
|
||||
end
|
||||
|
||||
function note --description "Edit or create a note"
|
||||
vim ~/Documents/notes/$argv[1].md
|
||||
end
|
||||
|
||||
abbr -a sn 'syncnotes'
|
||||
function syncnotes --description "Full git commit on notes"
|
||||
cd $HOME/Documents/notes
|
||||
|
@ -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
40
scripts/saved/unused_bootstraps
Executable 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 ✓"
|
||||
}
|
Loading…
Reference in New Issue
Block a user