From d17045d623f31114409caba9a3ddea958abfd6af Mon Sep 17 00:00:00 2001 From: James Dixon Date: Sun, 23 Mar 2025 13:08:12 -0400 Subject: [PATCH] Remove hugo functions --- config/bash/.bashrc | 13 ------------- config/zsh/.zshrc | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/config/bash/.bashrc b/config/bash/.bashrc index 09ee8ee..e69e103 100644 --- a/config/bash/.bashrc +++ b/config/bash/.bashrc @@ -78,19 +78,6 @@ alias tmrc="$EDITOR ~/.tmux.conf" alias ltmrc="$EDITOR ~/.local/.tmux.conf" alias gitrc="$EDITOR ~/.gitconfig" -# hugo -# BLOG_DIR should be set in local env -# BLOG_DIR="$HOME/Code/lemonase.github.io/" -hugo-cd() { cd $BLOD_DIR; } -hugo-lp() { cd $BLOG_DIR && hugo list all; } -hugo-ls() { hugo-lp | sed 1d | awk -F',' '{print $1, $(NF-4)}' | column -t; } -hugo-fzf() { hugo-ls | fzf | awk '{print $1}'; } - -hugo-np() { cd $BLOG_DIR && hugo new posts/$1.md; } -hugo-npe() { hugo-np $1 && $EDITOR $BLOG_DIR/content/posts/$1.md; } -hugo-rm() { rm "$BLOG_DIR/content/posts/$1.md"; } -hugo-ed() { $EDITOR $(hugo-fzf); } - # python # python3 is python unless python is already python3 if ! command -v python &> /dev/null && command -v python3 &> /dev/null; then diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 6861fab..bbd26b2 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -312,18 +312,6 @@ if command -v cargo >/dev/null; then src_rust fi -# hugo -# BLOG_DIR should be set in local env -hugo-cd() { cd $BLOD_DIR; } -hugo-lp() { cd $BLOG_DIR && hugo list all; } -hugo-ls() { hugo-lp | sed 1d | awk -F',' '{print $1, $(NF-4)}' | column -t; } -hugo-fzf() { hugo-ls | fzf | awk '{print $1}'; } - -hugo-np() { cd $BLOG_DIR && hugo new posts/$1.md; } -hugo-npe() { hugo-np $1 && $EDITOR $BLOG_DIR/content/posts/$1.md; } -hugo-rm() { rm "$BLOG_DIR/content/posts/$1.md"; } -hugo-ed() { $EDITOR $(hugo-fzf); } - # * * * * * * * * * * * * # MISC $PATH Additions * # * * * * * * * * * * * *