minor updates and favicon

This commit is contained in:
Pat Garrity 2025-09-26 22:11:54 -05:00
parent 464f925c5c
commit 335e137710
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
8 changed files with 6 additions and 74 deletions

View file

@ -8,6 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -9,7 +9,7 @@ html {
}
body {
line-height: 1.2;
line-height: 1.35;
font-family: "Libre Baskerville", serif;
margin: 0;
padding: 0;

View file

@ -8,6 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">

View file

@ -8,6 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">

View file

@ -8,6 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">

View file

@ -1,73 +0,0 @@
<!doctype html>
<html>
<head>
<title>Garrity Software - Optimizing Shell History</title>
<meta name="author" content="pfm" />
<meta name="description" content="writing - optimizing shell history" />
<link rel="stylesheet" type="text/css" href="../gs.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/go.min.js"></script>
</head>
<body>
<div id="wrapper">
<header><a href="#">λ garrity software</a></header>
<nav>
<ul>
<li><a href="../index.html">about</a></li>
<li><a href="../open-source.html">open source</a></li>
<li><a href="../writing.html">writing</a></li>
<li><a href="../contact.html">contact</a></li>
</ul>
</nav>
<main>
<section>
<h1>Optimizing Shell History</h1>
<p>I've spent a lot of time fiddling with my local development environment over
the years. As a result, I've also evolved how I interact with my shell history.</p>
<p>I would say that I use my history as a convenience and efficiency booster,
though I do not use it to drive workflow to the extent I see from others.</p>
<p>I take advantage of three things:</p>
<ol>
<li>History configuration settings.</li>
<li>Shell comments.</li>
<li>Fuzzy search (FZF, in this case).</li>
</ol>
</section>
<section>
<h2 id="history-configuration">History Configuration</h2>
<p>I currently use <code>zsh</code>, so the example below is
for <code>zsh</code>.</p>
<pre><code class="language-bash">export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=25000
export SAVEHIST=$HISTSIZE
export HISTORY_IGNORE="(ls|cd|pwd|exit)*"
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt SHARE_HISTORY # Share history between all sessions.
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate.
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space.
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file.
setopt HIST_VERIFY # Do not execute immediately upon history expansion.
setopt APPEND_HISTORY # append to history file (Default)
setopt HIST_NO_STORE # Don't store history commands
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks from each command line being added to the history.
setopt INTERACTIVE_COMMENTS # Allow comments in interactive shell.
# Example of what I have - you can use your own configuration. Note that this
# example is intended for use on wayland with wl-copy.
export FZF_CTRL_R_OPTS="
--preview 'echo {}' --preview-window up:3:hidden:wrap
--bind 'ctrl-/:toggle-preview'
--bind 'ctrl-y:execute-silent(echo -n {2..} | wl-copy)+abort'
--color header:italic
--header 'Press CTRL-Y to copy command into clipboard'"</code></pre>
</section>
</main>
<footer>Copyright <span class="focus">pfm</span></footer>
</div>
<script>hljs.highlightAll();</script>
</body>
</html>

View file

@ -11,6 +11,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="wrapper">