From 75e24ce86874d4feab8cd88b49526c920f5eacf2 Mon Sep 17 00:00:00 2001 From: self <self@sateoki.xyz> Date: Sat, 11 Jun 2022 02:01:35 +0100 Subject: Added powerlevel10k config --- zsh/.zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 8fe50e6..c70f757 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,10 @@ +# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc. +# Initialization code that may require console input (password prompts, [y/n] +# confirmations, etc.) must go above this block; everything else may go below. +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + # History HISTFILE=$ZDOTDIR/zsh_history HISTSIZE=1001 @@ -222,3 +229,7 @@ eval "$(zoxide init zsh)" # Sourcing for zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme + +# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh. +[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh -- cgit v1.2.1 From 2248779e0a7df30ce95fd79173de8022e3a3aff3 Mon Sep 17 00:00:00 2001 From: self <self@sateoki.xyz> Date: Sun, 12 Jun 2022 09:53:27 +0100 Subject: Moved wget-hsts file --- zsh/.zshrc | 1 + 1 file changed, 1 insertion(+) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index c70f757..d7c72a1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -35,6 +35,7 @@ autoload -U promptinit && promptinit alias feh="feh --no-fehbg" alias newsboat="newsboat -u ~/.config/newsboat/urls" alias gpg2="gpg2 --homedir $XDG_DATA_HOME/gnupg" +wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" # TODO: add all XDG directories in the right places, and then run the commands # as per the SO post: https://stackoverflow.com/questions/26198926/why-does-lesshst-keep-showing-up-in-my # to get rid of .lesshst file and where man creates it as well -- cgit v1.2.1 From e22bf9ba044e1372d8cc0748c8cb04de96572eb7 Mon Sep 17 00:00:00 2001 From: self <self@sateoki.xyz> Date: Sun, 12 Jun 2022 10:00:45 +0100 Subject: Fixed wget and actually made it an alias --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index d7c72a1..3467964 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -35,7 +35,7 @@ autoload -U promptinit && promptinit alias feh="feh --no-fehbg" alias newsboat="newsboat -u ~/.config/newsboat/urls" alias gpg2="gpg2 --homedir $XDG_DATA_HOME/gnupg" -wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" +alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' # TODO: add all XDG directories in the right places, and then run the commands # as per the SO post: https://stackoverflow.com/questions/26198926/why-does-lesshst-keep-showing-up-in-my # to get rid of .lesshst file and where man creates it as well -- cgit v1.2.1 From f26eacaf049ef7f3c8a453ba9e5404fbb6756837 Mon Sep 17 00:00:00 2001 From: self <george@gabbott.dev> Date: Mon, 27 Jun 2022 23:28:40 +0100 Subject: removed ac as entries moved over --- zsh/.zshrc | 1 - 1 file changed, 1 deletion(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 3467964..0f36be9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -111,7 +111,6 @@ alias cldrec="mn cld/calendar-recurring" # anime alias awl="mn med/anime-watchlist" # Anime I have seen alias atw="mn med/anime-towatch" # Anime I should watch -alias ac="mn med/anime-completed" # Anime I have completed alias ad="mn med/anime-dropped" # Anime I have dropped # TV -- cgit v1.2.1 From 833a7dbf309ebdc019de344a0204cfd942f77970 Mon Sep 17 00:00:00 2001 From: self <george@gabbott.dev> Date: Sat, 2 Jul 2022 19:51:40 +0100 Subject: Changed filename for mer, yer --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 0f36be9..9159b5a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -205,13 +205,13 @@ holc () { # Holiday Entry mer() { # Month End Recap - TODO: get this to work just with e.g. mer 2022-01 if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi mkdir -p "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)" - nvim "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)/L$(date +%Y-%m -d $DT) - Month End Recap.txt" + nvim "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)/L$(date +%Y-%m -d $DT)-month-end-recap.txt" } yer() { # Year End Recap - TODO: see mer todos if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi mkdir -p "$HOME/docs/daily-log/$(date %Y -d $DT)-12" - nvim "$HOME/docs/daily-log/$(date +%Y -d $DT)-12/$(date +%Y -d $DT) - Year End Recap.txt" + nvim "$HOME/docs/daily-log/$(date +%Y -d $DT)-12/$(date +%Y -d $DT)-year-end-recap.txt" } mn() { # make note -- cgit v1.2.1