Merge pull request #7 from mcataford/feat/shell-updates
feat: more shell updates
This commit is contained in:
commit
28581fd055
3 changed files with 10 additions and 10 deletions
|
@ -3,12 +3,13 @@
|
||||||
# Ensuring steps are defined.
|
# Ensuring steps are defined.
|
||||||
. ./steps.sh
|
. ./steps.sh
|
||||||
|
|
||||||
TOTAL_STEPS=5
|
TOTAL_STEPS=6
|
||||||
|
|
||||||
# Refer to steps.sh for step definition.
|
# Refer to steps.sh for step definition.
|
||||||
bootstrap() {
|
bootstrap() {
|
||||||
ensure_apt_up_to_date
|
ensure_apt_up_to_date
|
||||||
ensure_apt_dependencies
|
ensure_apt_dependencies
|
||||||
|
ensure_omz
|
||||||
ensure_nvm
|
ensure_nvm
|
||||||
inject_shell_configuration
|
inject_shell_configuration
|
||||||
inject_vim_configuration
|
inject_vim_configuration
|
||||||
|
|
10
shell_extras
10
shell_extras
|
@ -19,7 +19,8 @@ alias tm="tmux new -s $1"
|
||||||
|
|
||||||
# All roads lead to nvim.
|
# All roads lead to nvim.
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
alias v=nvim
|
|
||||||
|
alias ghpr="gh pr create -w"
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# FUNCTIONS #
|
# FUNCTIONS #
|
||||||
|
@ -27,14 +28,7 @@ alias v=nvim
|
||||||
|
|
||||||
# Autoupdates the env setup.
|
# Autoupdates the env setup.
|
||||||
function env_autoupdate {
|
function env_autoupdate {
|
||||||
SHELL_CONFIG_PATH=""
|
|
||||||
|
|
||||||
if [[ -n $(echo $SHELL | grep zsh) ]]; then
|
|
||||||
SHELL_CONFIG_PATH="$HOME/.zshrc"
|
SHELL_CONFIG_PATH="$HOME/.zshrc"
|
||||||
else
|
|
||||||
SHELL_CONFIG_PATH="$HOME/.bashrc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
cd ~/.env_goodies
|
cd ~/.env_goodies
|
||||||
|
|
5
steps.sh
5
steps.sh
|
@ -38,6 +38,11 @@ ensure_apt_dependencies() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ensure_omz() {
|
||||||
|
pre_step "Installs Oh My ZSH"
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash
|
||||||
|
}
|
||||||
|
|
||||||
ensure_nvm() {
|
ensure_nvm() {
|
||||||
pre_step "Installing nvm to manage node version"
|
pre_step "Installing nvm to manage node version"
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
|
|
Loading…
Reference in a new issue