dotfiles

My personal dotfiles 💠️

commit c9d5c0e8da764081b546762908de023fe8f41c06
parent dd805454becfa2d1ed96623aa9824f1238a934eb
Author: Pablo <pablo-escobar@riseup.net>
Date:   Sun, 20 Jun 2021 17:18:05 -0300

Updated the fish prompt so that it correctly addapts to the size of the screen

Minor changes the in vim LaTeXEmph function

Updated the dictionaries

Diffstat:
M.config/aspell/.aspell.en.prepl | 3+++
M.config/aspell/.aspell.en.pws | 9+++++++--
M.config/aspell/.aspell.pt_BR.prepl | 4++++
M.config/aspell/.aspell.pt_BR.pws | 4+++-
M.config/fish/config.fish | 95++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
M.config/nvim/init.vim | 4++--
6 files changed, 72 insertions(+), 47 deletions(-)
diff --git a/.config/aspell/.aspell.en.prepl b/.config/aspell/.aspell.en.prepl
@@ -10,6 +10,7 @@ obtaint obtain
 runned Rundown
 runned rundown
 dirct direct
+pieace piece
 barrior barrier
 sintactic syntactic
 imples implies
@@ -32,6 +33,7 @@ represention representation
 publically publicly
 definion Definition
 interupts interrupts
+sence sense
 stright straight
 latelly lately
 trypod tripod
@@ -41,6 +43,7 @@ subrepresentation subrepresentations
 answare answer
 yhe the
 irreducle irreducible
+faigthul faithful
 refered referred
 clain claim
 chacters characters
diff --git a/.config/aspell/.aspell.en.pws b/.config/aspell/.aspell.en.pws
@@ -1,4 +1,4 @@
-personal_ws-1.1 en 117 
+personal_ws-1.1 en 122 
 runtime
 MathML
 functor
@@ -25,6 +25,7 @@ Borel
 Pontryagin
 diffeomorphism
 performant
+groupoid
 Asymptote
 enum
 injective
@@ -41,14 +42,15 @@ reducibility
 Jupyter
 NaN
 monads
-nar
 NaR
+nar
 adjoint
 unfused
 orientable
 setuptools
 natively
 REPL
+monoidal
 coproducts
 asciimath
 toc
@@ -75,6 +77,7 @@ EPS
 numpy
 WL
 PyPI
+monoids
 exponentials
 TODO
 untagged
@@ -108,10 +111,12 @@ morphisms
 procedurally
 github
 GitLab
+homomorphism
 GADTs
 Prolog
 MathJax
 endofunctors
+magmas
 codomain
 Interoperability
 Makefile
diff --git a/.config/aspell/.aspell.pt_BR.prepl b/.config/aspell/.aspell.pt_BR.prepl
@@ -2,13 +2,17 @@ personal_repl-1.1 pt_BR 0
 iniciaciação iniciação
 caráters caracteres
 supresentação subrepresentação
+subbases sub-base
 satisfassa satisfaça
 ismorfismo isomorfismo
 idea ideai
+subbase subaste
+subbase sub-base
 isoformismo isomorfismo
 depentes dependentes
 homegênios homogêneos
 denomos denotemos
+inial inicial
 volores valores
 sobrejtor sobrejetora
 groça grosa
diff --git a/.config/aspell/.aspell.pt_BR.pws b/.config/aspell/.aspell.pt_BR.pws
@@ -1,4 +1,4 @@
-personal_ws-1.1 pt_BR 18 
+personal_ws-1.1 pt_BR 20 
 pré-imagens
 profinitos
 tomando-se
@@ -10,10 +10,12 @@ defini-los
 pseudométricas
 estudá-los
 subsessão
+funtoriais
 pré-imagem
 adicos
 pseudométrica
 funtor
 mantê-las
 explicitando-se
+subobjeto
 pode-se
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
@@ -32,48 +32,59 @@ function fish_greeting
     printf '\n'
 end
 
+function _fish_prompt_long
+  # Formatted pwd
+  set dir (string replace "$HOME" '~' (pwd))
+
+  set_color normal
+  set_color white
+  printf "["
+
+  # Print the username
+  set_color --bold green
+  printf "%s@%s" (whoami) (hostname)
+
+  # Print the current directory
+  set_color --bold blue
+  printf " %s" "$dir"
+
+  # Print the current git branch (if inside a repo)
+  set_color --bold cyan
+  __fish_git_prompt
+
+  set_color normal
+  set_color white
+  printf ']' 
+end
+
+function _fish_prompt_medium
+  # Formatted pwd
+  set dir (string replace "$HOME" '~' (pwd))
+
+  set_color --bold blue
+  printf '%s' "$dir"
+  set_color normal
+  set_color white
+end
+
 function fish_prompt
-    # Formatted pwd
-    set dir (string replace "$HOME" '~' (pwd))
-
-    # Show fancy prompt if the screen is big enought
-    if test (math (string length "$dir") + 4) -lt (math (tput cols) \* 0.50)
-      set_color normal
-      set_color white
-      printf "["
-
-      # Print the username
-      set_color --bold green
-      printf "%s@%s" (whoami) (hostname)
-
-      # Print the current directory
-      set_color --bold blue
-      printf " %s" "$dir"
-
-      # Print the current git branch (if inside a repo)
-      set_color --bold cyan
-      __fish_git_prompt
-
-      set_color normal
-      set_color white
-      printf ']' 
-    else
-      set_color --bold blue
-      printf '%s' "$dir"
-      set_color normal
-      set_color white
-    end
-
-    if test $status -ne 0
-      set_color red
-    end
-
-    if test "$USER" = root
-      printf '# '
-    else
-    	printf '$ '
-    end
-      
-    set_color normal
+  # Show fancy prompt if the screen is big enought
+  if test (string length (_fish_prompt_long)) -lt (tput cols)
+    _fish_prompt_long
+  else if test (string length (_fish_prompt_medium)) -lt (tput cols)
+    _fish_prompt_medium
+  end
+
+  if test $status -ne 0
+    set_color red
+  end
+
+  if test "$USER" = root
+    printf '# '
+  else
+    printf '$ '
+  end
+
+  set_color normal
 end
 
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -84,8 +84,8 @@ endfunction
 
 " Enter insert mode inside the \emph macro
 function! LaTeXEmph()
-  execute "normal! i\\emph{} "
-  call feedkeys('hi')
+  execute "normal! i \\emph{}"
+  call feedkeys('i')
 endfunction
 
 " Alias the LaTeXBegin function as a command