-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutable_autorun.cmd
More file actions
29 lines (22 loc) · 952 Bytes
/
executable_autorun.cmd
File metadata and controls
29 lines (22 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
REM call hooks
call "%USERPROFILE%\scoop\apps\clink\current\clink.bat" inject --autorun
call doskey /macrofile="%USERPROFILE%\.doskey.mac"
REM set %VISUAL% for chezmoi & others
for %%i in (nvim.exe vim.exe) do @if exist "%%~$PATH:i" (set VISUAL=%%~$PATH:i & goto :break)
:break
REM other environment variables
REM DO NOT INCLUDE QUOTES!
set RCLONE_CONFIG=%USERPROFILE%\.config\rclone\rclone.conf
set CLAUDE_CODE_GIT_BASH_PATH=%USERPROFILE%\scoop\apps\git\current\bin\bash.exe
REM display fancy stuff if this is an interactive session
echo %CMDCMDLINE% | findstr /I /C:"/C" >nul && goto :end || goto :interactive
:interactive
REM padding from clink
echo(
REM unix-style prompt while still windows-y
PROMPT %USERNAME%@%COMPUTERNAME% $P$G
REM final fastfetch for both terminal-porn and usefulness since i switch between machines
call fastfetch
REM can't do a padding after it because clink strips the last newline before the prompt
:end