From 4d88e6f3e9813d709e282711b331b6317fa1465f Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Tue, 2 Apr 2024 09:00:13 -0400 Subject: [PATCH] ??? --- .ashrc | 16 ++++++++++++++++ .gitconfig | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.ashrc b/.ashrc index 5f4d6d5..cde8a20 100644 --- a/.ashrc +++ b/.ashrc @@ -239,6 +239,22 @@ generate_prompt() { PS1="\$(generate_prompt)" +if [ "$(whoami)" = "win7" ]; then + printf 'Microsoft Windows [Version 6.1.7601] \nCopyright 2009 Microsoft Corporation. All rights reserved.\n\n' + + generate_prompt() { + printf "C:%s> " "$(pwd | sed -e 's|^/home/|/Users/|g' -e 's|/|\\\\|g')" + } + + PS1="\$(generate_prompt)" + + title () { + echo -ne "\033]30;$@\007" + } + + title "C:\Windows\system32.cmd.exe" +fi + # # Startup functions - these are executed on every shell start. # diff --git a/.gitconfig b/.gitconfig index 3c31017..e2e0a5e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -3,7 +3,7 @@ # Please adapt and uncomment the following lines: name = Jordan Bancino email = jordan@bancino.net - signingkey = /home/jordan/.ssh/id_ed25519.pub + signingkey = ~/.ssh/id_ed25519.pub [push] autoSetupRemote = yes followtags = true