From 23ca3dda4e8df9676da3109f1e36e8f75f44d3b6 Mon Sep 17 00:00:00 2001 From: fengbh <1953356163@qq.com> Date: Fri, 25 Apr 2025 17:22:09 +0800 Subject: [PATCH] support tabby auto detect work dir --- bash/bashrc_common | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bash/bashrc_common b/bash/bashrc_common index 34681d2..fa796d3 100644 --- a/bash/bashrc_common +++ b/bash/bashrc_common @@ -1,3 +1,12 @@ +#!/bin/bash +# File : .bashrc_common +# License : MIT +# Author : Feng Bohan <1953356163@qq.com> +# Date : 2025-04-25 17:20:07 +# Last Modified Date: 2025-04-25 17:21:35 +# Last Modified By : Feng Bohan <1953356163@qq.com> +# ----- +# Copyright © 2025 Feng Bohan. All Rights Reserved. alias e='gvim ~/.bashrc' alias s='source ~/.bashrc' alias eg='gvim ~/.vimrc' @@ -24,3 +33,5 @@ w5(){ } export PS1="[\[\e[01;32m\]\u@\h\[\e[00m\]-\t \$(free_mem)]:\[\e[01;34m\]\$(w5)\[\e[00m\]\$ " +# set for tabby auto detect work dir +export PS1="$PS1\[\e]1337;CurrentDir="'$(pwd)\a\]'