Remove hugo functions

This commit is contained in:
James Dixon 2025-03-23 13:08:12 -04:00
parent be5f4e0f39
commit d17045d623
2 changed files with 0 additions and 25 deletions

View File

@ -78,19 +78,6 @@ alias tmrc="$EDITOR ~/.tmux.conf"
alias ltmrc="$EDITOR ~/.local/.tmux.conf" alias ltmrc="$EDITOR ~/.local/.tmux.conf"
alias gitrc="$EDITOR ~/.gitconfig" 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 # python
# python3 is python unless python is already python3 # python3 is python unless python is already python3
if ! command -v python &> /dev/null && command -v python3 &> /dev/null; then if ! command -v python &> /dev/null && command -v python3 &> /dev/null; then

View File

@ -312,18 +312,6 @@ if command -v cargo >/dev/null; then
src_rust src_rust
fi 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 * # MISC $PATH Additions *
# * * * * * * * * * * * * # * * * * * * * * * * * *