From 0a14893132bc996da2cb134b8289c6707c958000 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Sat, 29 May 2021 23:27:58 -0400 Subject: [PATCH 1/2] Test creation of a oh-my-zsh custom file. --- .oh-my-zsh/custom/custom_alias.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .oh-my-zsh/custom/custom_alias.zsh diff --git a/.oh-my-zsh/custom/custom_alias.zsh b/.oh-my-zsh/custom/custom_alias.zsh new file mode 100644 index 0000000..c505a96 --- /dev/null +++ b/.oh-my-zsh/custom/custom_alias.zsh @@ -0,0 +1,10 @@ +# You can put files here to add functionality separated per file, which +# will be ignored by git. +# Files on the custom/ directory will be automatically loaded by the init +# script, in alphabetical order. + +# For example: add yourself some shortcuts to projects you often work on. +# +# brainstormr=~/Projects/development/planetargon/brainstormr +# cd $brainstormr +# From 55d4f803941328ef799ae19fab6e295556b302b8 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Sat, 29 May 2021 23:34:31 -0400 Subject: [PATCH 2/2] Moved alias definition into oh-my-zsh/custom --- .oh-my-zsh/custom/custom_alias.zsh | 12 ++---------- .zshrc | 3 --- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.oh-my-zsh/custom/custom_alias.zsh b/.oh-my-zsh/custom/custom_alias.zsh index c505a96..8e736d4 100644 --- a/.oh-my-zsh/custom/custom_alias.zsh +++ b/.oh-my-zsh/custom/custom_alias.zsh @@ -1,10 +1,2 @@ -# You can put files here to add functionality separated per file, which -# will be ignored by git. -# Files on the custom/ directory will be automatically loaded by the init -# script, in alphabetical order. - -# For example: add yourself some shortcuts to projects you often work on. -# -# brainstormr=~/Projects/development/planetargon/brainstormr -# cd $brainstormr -# +# This line allows the word 'custom' to specify the dotfiles bare git repo +alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' diff --git a/.zshrc b/.zshrc index ef2205c..7e24a5d 100644 --- a/.zshrc +++ b/.zshrc @@ -118,9 +118,6 @@ fi # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -# Added this for dotfiles alias, may want to make a custom config folder later. -alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' - [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_COMMAND='fdfind --type f'