From 38030df570d4de85e5b5968e68f493e3cf2d0214 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 14 Nov 2023 16:48:15 +0000 Subject: [PATCH] Add ~/.local/bin to PATH, add md function --- bash/.bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index d6ded6f..4c47e29 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -1,3 +1,5 @@ +#!/bin/bash + # Do nothing if not running an interactive shell case $- in *i*) ;; @@ -9,6 +11,8 @@ export TERM="xterm-256color" export EDITOR="vi" export VISUAL="vi" +export PATH="$PATH:$HOME/.local/bin/" + # The Prompt export PS1='\[\e[38;2;161;161;0m\]\u\[\e[0m\]@\[\e[34m\]\h\[\e[0m\]:\[\e[32m\]\W\[\e[0m\]\$ ' @@ -52,3 +56,8 @@ set -o vi # Aliases source ~/.config/shell/aliasrc + +# Functions +md() { + mkdir -p "$1" && cd "$1" +}