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