From a412ff3de53d82f6fa7a9a14f4876f6c2ef50ef0 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Fri, 8 Mar 2024 00:01:03 +0000 Subject: [PATCH] docs: update dotfiles/bashrc --- dotfiles/bashrc.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dotfiles/bashrc.md b/dotfiles/bashrc.md index d837c88..11639a0 100644 --- a/dotfiles/bashrc.md +++ b/dotfiles/bashrc.md @@ -1,14 +1,14 @@ --- -title: "Bashrc" -description: "Details about how I configure my shell" -author: "Thurstylark" -date: 2021-9-25 -draft: false +title: Bashrc +description: Details about how I configure my shell +published: true +date: 2024-03-08T00:01:02.134Z +tags: +editor: markdown +dateCreated: 2024-03-07T23:21:44.989Z --- - - -Source: https://git.thurstylark.com/dotfiles/bashrc.git +Source: https://git.thurstylark.com/dotfiles/bashrc ## Profile @@ -44,14 +44,14 @@ I'm not going in to detail about every line, but I'll hilight the important part First off, if we're not running bash interactively, there's no use for any of the rest of this, so just skip it. ``` -- If not running interactively, don't do anything +# If not running interactively, don't do anything [ $- != *i* ]( $- != *i* .md) && return ``` Another cool option is actually built in to bash: If you call for a directory without any command before it, just `cd` into that directory. ``` -- If a directory is given without any command, CD into it. +# If a directory is given without any command, CD into it. shopt -s autocd ``` @@ -156,7 +156,7 @@ https://git.thurstylark.com/dotfiles/bashrc/src/branch/master/.bashrc.d/vactivat I started needing more than one python virtualenv, and I wanted easy access to my own specific file structure. Additionally, I wanted the ability to deactivate the venv like I would exit a child shell. This is the solution that I came up with. -A caveat to this is that the prompt modification that venv usually applies is not available using this method. If a prompt modification is desired, it needs to be taken care of elsewhere. I take care of it in my prompt setup detailed [here](https://wiki.thurstylark.com/Bashrc.html#Bashrc-Prompt). +A caveat to this is that the prompt modification that venv usually applies is not available using this method. If a prompt modification is desired, it needs to be taken care of elsewhere. I take care of it in my prompt setup detailed [here](/dotfiles/bashrc#Prompt). ---- @@ -223,4 +223,4 @@ Proper tune selection depends on `triumph()` being able to read the exit code fr https://git.thurstylark.com/dotfiles/bashrc/src/branch/master/.bashrc.d/weechat.bash -See: [Weechat](eechat.md). +For an outdated, but still somewhat useful overview of how I configure/use weechat, see: [Weechat](/misc/archive/thurstylark-vps/weechat).