commit 13b52440a24992c15f727ad746864e24e12337e1
parent ff88d23cde4b39d5f3c08319020295a858f6cd8c
Author: Bharatvaj <-g>
Date: Tue, 31 May 2022 18:43:19 +0530
Setup clink for cmd
Add .config/clink/clink_settings
Use eol=crlf for *.cmd files, lf with cmd causes isses
Diffstat:
5 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.config/.gitignore b/.config/.gitignore
@@ -5,9 +5,10 @@
!X11
!alacritty/
!alacritty/**
-alacritty/windows.yml
!bash/
!bash/**
+!clink
+!clink/clink_settings
!cmd/
!cmd/**
!git/
@@ -28,3 +29,5 @@ alacritty/windows.yml
!vim/
!vim/**
!wgetrc
+
+alacritty/windows.yml
diff --git a/.config/clink/clink_settings b/.config/clink/clink_settings
@@ -0,0 +1 @@
+clink.autostart=%XDG_CONFIG_HOME%\cmd\profile.cmd
diff --git a/.config/cmd/profile.cmd b/.config/cmd/profile.cmd
@@ -12,4 +12,4 @@ set XDG_CACHE_HOME=%USERPROFILE%\.cache
set MYVIMRC=%XDG_CONFIG_HOME%\vim\vimrc
set VIMINIT=source $MYVIMRC
-%USERPROFILE%\.config\cmd\aliases.cmd
+%XDG_CONFIG_HOME%\cmd\aliases.cmd
diff --git a/.config/cmd/setup.ps1 b/.config/cmd/setup.ps1
@@ -6,3 +6,5 @@ Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.
# Install the absolute essentials
scoop install $(gc ~/.config/cmd/packages.txt)
+# Setup clink
+clink autorun set "clink inject --profile %XDG_CONFIG_HOME%\clink"
diff --git a/.gitattributes b/.gitattributes
@@ -1 +1,2 @@
* text eol=lf
+*.cmd text eol=crlf