mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 11:55:36 +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 -
|
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
|
||||||
set file (ls | fzf)
|
if test -n "$filename"
|
||||||
if [ $status -eq 0 ]
|
vim $filename.md
|
||||||
vim $file
|
else
|
||||||
|
set file (ls | fzf)
|
||||||
|
if [ $status -eq 0 ]
|
||||||
|
vim $file
|
||||||
|
end
|
||||||
end
|
end
|
||||||
cd -
|
cd -
|
||||||
end
|
end
|
||||||
|
|
||||||
function note --description "Edit or create a note"
|
|
||||||
vim ~/Documents/notes/$argv[1].md
|
|
||||||
end
|
|
||||||
|
|
||||||
abbr -a sn 'syncnotes'
|
abbr -a sn 'syncnotes'
|
||||||
function syncnotes --description "Full git commit on notes"
|
function syncnotes --description "Full git commit on notes"
|
||||||
cd $HOME/Documents/notes
|
cd $HOME/Documents/notes
|
||||||
|
@ -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