docs: update dotfiles/bashrc
This commit is contained in:
parent
7c115c39f7
commit
a412ff3de5
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
title: "Bashrc"
|
title: Bashrc
|
||||||
description: "Details about how I configure my shell"
|
description: Details about how I configure my shell
|
||||||
author: "Thurstylark"
|
published: true
|
||||||
date: 2021-9-25
|
date: 2024-03-08T00:01:02.134Z
|
||||||
draft: false
|
tags:
|
||||||
|
editor: markdown
|
||||||
|
dateCreated: 2024-03-07T23:21:44.989Z
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Source: https://git.thurstylark.com/dotfiles/bashrc
|
||||||
|
|
||||||
Source: https://git.thurstylark.com/dotfiles/bashrc.git
|
|
||||||
|
|
||||||
## Profile
|
## 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.
|
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
|
[ $- != *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.
|
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
|
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.
|
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
|
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).
|
||||||
|
|
Loading…
Reference in New Issue