dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 4d7a2127cd213d384488c483da1bec6464d9924d
parent 1c2e86447eb79f3bde58763d8a7fbdbce8c84e9c
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Mon,  7 Jul 2025 15:14:24 -0500

Update in windows

Diffstat:
M.config/emacs/init.el | 29++++-------------------------
MDocuments/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 | 23++++++++++++++++++++---
AOneDrive - Ausenco/Documentos/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 | 42++++++++++++++++++++++++++++++++++++++++++
3 files changed, 66 insertions(+), 28 deletions(-)

diff --git a/.config/emacs/init.el b/.config/emacs/init.el @@ -2,54 +2,33 @@ (toggle-scroll-bar -1) (tool-bar-mode -1) +(prefer-coding-system 'utf-8-unix) (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/")) (package-initialize) - (global-set-key (kbd "C-c l") #'org-store-link) (global-set-key (kbd "C-c a") #'org-agenda) (global-set-key (kbd "C-c c") #'org-capture) -(require 'org-drill) -(setq org-default-notes-file (concat org-directory "/notes.org")) (setq org-capture-templates `(("a" "Task" entry (file+headline "tasks" "Tasks") "* TODO %?\n %u\n %a") - ("e" - "Drill" - entry - (file+headline "" "Emacs") - ,(concat "** Item %^{mode}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:DATE_ADDED: %u\n:END:\n\n*** Key Sequence\n%^{key_sequence}\n\n*** Description\n%^{description}") - :empty-lines 1 - :immediate-finish t) - ("l" "Linux") - ("lb" - "Linux commands" - entry - (file+headline "" "Linux") - ,(concat "** %^{topic}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:END:\n\n%^{question}\n\n*** Answer\n%^{answer}") - :empty-lines 1 - :immediate-finish t) - ("lf" - "Linux fod" - entry - (file+headline "" "Linux") - ,(concat "** %^{topic}: :" (format "%s" org-drill-question-tag) ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:END:\n\n*** flag\n%^{flag}\n\n*** option\n%^{option}\n\n*** description\n%?") - :empty-lines 1) ("j" "journal Entry" entry - (file+datetree "journal.org") + (file+olp+datetree "journal.org") "* %?" :empty-lines 1) )) +(setenv "HOME" "c:/Users/pablo.cardenas/") + (setq telega-directory (expand-file-name "~/.local/share/telega") telega-database-dir (expand-file-name "~/.local/share/telega") telega-cache-dir (expand-file-name "~/.cache/telega/cache") diff --git a/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 @@ -3,10 +3,14 @@ $env:XDG_CONFIG_HOME="$HOME\.config" $env:XDG_CACHE_HOME=$env:TEMP $env:VISUAL="vim" $env:Path += ";C:\Program Files\Vim\vim91" +$env:Path += ";$HOME\AppData\Local\Vim\vim91" $env:Path += ";C:\Program Files\Emacs\emacs-29.4\bin" -$env:Path += ";C:\Program Files\Tesseract-OCR" -$env:Path = "$HOME\AppData\Local\Programs\Python\Python312;" + $env:Path -$env:OPENCV_SAMPLES_DATA_PATH = "$HOME\Documents\dev\opencv" +$env:Path += ";$HOME\AppData\Local\Emacs\bin" +$env:Path += ";$HOME\AppData\Local\Programs\Python\Launcher" + +$env:Path = "$HOME\AppData\Local\dotnet;" + $env:Path +$env:DOTNET_ROOT="$HOME\AppData\Local\dotnet\" +$env:DOTNET_MULTILEVEL_LOOKUP=0 function prompt {"$ "} @@ -21,5 +25,18 @@ function vim { function dotfiles { git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" $args } +function python { throw "Use py instead of python!" } + Set-PSReadLineOption -EditMode Emacs Set-PSReadLineKeyHandler -Chord Control+i -Function Complete +Set-PSReadLineOption -Colors @{ + Command = "$([char]0x1b)[0m" + Number = "$([char]0x1b)[0m" + Member = "$([char]0x1b)[0m" + Operator = "$([char]0x1b)[0m" + Type = "$([char]0x1b)[0m" + Variable = "$([char]0x1b)[0m" + Parameter = "$([char]0x1b)[0m" + ContinuationPrompt = "$([char]0x1b)[0m" + Default = "$([char]0x1b)[0m" +} diff --git a/OneDrive - Ausenco/Documentos/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 b/OneDrive - Ausenco/Documentos/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,42 @@ +$env:HOME="$HOME" +$env:XDG_CONFIG_HOME="$HOME\.config" +$env:XDG_CACHE_HOME=$env:TEMP +$env:VISUAL="vim" +$env:Path += ";C:\Program Files\Vim\vim91" +$env:Path += ";$HOME\AppData\Local\Vim\vim91" +$env:Path += ";C:\Program Files\Emacs\emacs-29.4\bin" +$env:Path += ";$HOME\AppData\Local\Emacs\bin" +$env:Path += ";$HOME\AppData\Local\Programs\Python\Launcher" + +$env:Path = "$HOME\AppData\Local\dotnet;" + $env:Path +$env:DOTNET_ROOT="$HOME\AppData\Local\dotnet\" +$env:DOTNET_MULTILEVEL_LOOKUP=0 + +function prompt {"$ "} + +function vim { + $external_vim = Get-Command -Type Application vim + if ($MyInvocation.ExpectingInput) { + $input | & $external_vim.Source -u $env:XDG_CONFIG_HOME/vim/vimrc --cmd "set packpath+=$env:XDG_CONFIG_HOME\vim" $args + } else { + & $external_vim.Source -u $env:XDG_CONFIG_HOME/vim/vimrc --cmd "set packpath+=$env:XDG_CONFIG_HOME\vim runtimepath+=$env:XDG_CONFIG_HOME\vim" $args + } +} + +function dotfiles { git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" $args } + +function python { throw "Use py instead of python!" } + +Set-PSReadLineOption -EditMode Emacs +Set-PSReadLineKeyHandler -Chord Control+i -Function Complete +Set-PSReadLineOption -Colors @{ + Command = "$([char]0x1b)[0m" + Number = "$([char]0x1b)[0m" + Member = "$([char]0x1b)[0m" + Operator = "$([char]0x1b)[0m" + Type = "$([char]0x1b)[0m" + Variable = "$([char]0x1b)[0m" + Parameter = "$([char]0x1b)[0m" + ContinuationPrompt = "$([char]0x1b)[0m" + Default = "$([char]0x1b)[0m" +}