mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 23:55:37 +00:00
clean up bootstrap scripts and notes
This commit is contained in:
parent
cec0f4789c
commit
ec53a7ed7f
@ -33,17 +33,17 @@ function notes --description "Notes functions"
|
|||||||
cd -
|
cd -
|
||||||
end
|
end
|
||||||
|
|
||||||
function wiki --description "Open vimwiki file"
|
function note --description "Edit or create a note" -a "filename"
|
||||||
cd $HOME/Documents/notes
|
cd $HOME/Documents/notes
|
||||||
|
if test -n "$filename"
|
||||||
|
vim $filename.md
|
||||||
|
else
|
||||||
set file (ls | fzf)
|
set file (ls | fzf)
|
||||||
if [ $status -eq 0 ]
|
if [ $status -eq 0 ]
|
||||||
vim $file
|
vim $file
|
||||||
end
|
end
|
||||||
cd -
|
|
||||||
end
|
end
|
||||||
|
cd -
|
||||||
function note --description "Edit or create a note"
|
|
||||||
vim ~/Documents/notes/$argv[1].md
|
|
||||||
end
|
end
|
||||||
|
|
||||||
abbr -a sn 'syncnotes'
|
abbr -a sn 'syncnotes'
|
||||||
|
@ -4,35 +4,6 @@ DOTS=$(dirname "$0")/..
|
|||||||
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
|
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
|
||||||
DOTS="$PWD"
|
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() {
|
install_xcode() {
|
||||||
if [ "$(uname)" = "Darwin" ]
|
if [ "$(uname)" = "Darwin" ]
|
||||||
then
|
then
|
||||||
@ -115,16 +86,6 @@ install_gitmux() {
|
|||||||
echo "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() {
|
setup_poetry() {
|
||||||
poetry completions fish > $(brew --prefix)/share/fish/vendor_completions.d/poetry.fish
|
poetry completions fish > $(brew --prefix)/share/fish/vendor_completions.d/poetry.fish
|
||||||
}
|
}
|
||||||
@ -143,8 +104,6 @@ echo ""
|
|||||||
echo "consider running other scripts:"
|
echo "consider running other scripts:"
|
||||||
echo " - install_casks"
|
echo " - install_casks"
|
||||||
echo " - configure_macos"
|
echo " - configure_macos"
|
||||||
echo " - setup_keybase"
|
|
||||||
echo " - install_python"
|
echo " - install_python"
|
||||||
echo " - install_rust"
|
echo " - install_rust"
|
||||||
echo " - install_cargos"
|
|
||||||
echo ""
|
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