dotfiles

My personal dotfiles

commit 560e5e339c51c49ba2cbb3f1f49429a5a213df61
parent c2057ad6444feae02883d60cf75b7c93c351c9ce
Author: Pablo <pablo-escobar@riseup.net>
Date:   Tue, 16 Feb 2021 23:26:16 +0000

Added environment variables for the Julia programming language and updated the LaTeX preambles

Diffstat:
M.config/fish/config.fish | 1+
M.config/tmux/tmux.conf | 15+++++++--------
M.local/bin/exports.sh | 4++++
M.local/share/texmf/tex/latex/preamble-common.tex | 10++++------
4 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
@@ -34,6 +34,7 @@ set PATH "/usr/local/sbin" \
          "$XDG_DATA_HOME/emsdk/upstream/emscripten" \
          "$XDG_DATA_HOME/mitra" \
          "$XDG_DATA_HOME/tmux" \
+         "$XDG_DATA_HOME/julia-1.5.3/bin" \
          /usr/local/share/*/{include,bin,lib}
 
 # Abbreviations
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -8,20 +8,19 @@
 #         |_|                        
 # 
 # Pablo (C) 2020
-#
 
 set -g mouse on
 
+# Save the history
+set -g history-file "$XDG_CONFIG_HOME/tmux/tmux.history"
+
 # Open new panes in the current directory
 bind '"' split-window -c "#{pane_current_path}"
 bind  % split-window -h -c "#{pane_current_path}"
 
-# Save the history
-set -g history-file "$XDG_CONFIG_HOME/tmux/tmux.history"
-
 # Resize the current pane using Alt + direction
-bind -n M-k resize-pane -U 5
-bind -n M-j resize-pane -D 5
-bind -n M-h resize-pane -L 5
-bind -n M-l resize-pane -R 5
+bind -n M-k resize-pane -U 9
+bind -n M-j resize-pane -D 9
+bind -n M-h resize-pane -L 9
+bind -n M-l resize-pane -R 9
 
diff --git a/.local/bin/exports.sh b/.local/bin/exports.sh
@@ -49,6 +49,10 @@ export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
 # Wasmtime
 export WASMTIME_HOME="$XDG_DATA_HOME/wasmtime"
 
+# Julia
+export JULIA_DEPOT_PATH="$XDG_DATA_HOME/julia:$JULIA_DEPOT_PATH"
+export JULIA_HISTORY="$XDG_CONFIG_HOME/julia/history"
+
 # ================================ Programs ==================================
 
 # Bash history
diff --git a/.local/share/texmf/tex/latex/preamble-common.tex b/.local/share/texmf/tex/latex/preamble-common.tex
@@ -73,10 +73,8 @@
 % Empty macro (it's usefull for typesetting Young diagrams)
 \newcommand{\void}{ }
 
-% Tikz command to draw tangent vectors
-\def\drawtangent at #1 with #2;{%
-  \begin{scope}[shift={#1}]
-    \draw[-{Latex[width=2pt, length=2pt]}, rotate=#2] (0, 0) -- +(1, 0);
-  \end{scope}
-}
+% Display long arrows instead of short ones
+\renewcommand{\to}{\longrightarrow}
+\renewcommand{\mapsto}{\longrightarrow}
+\renewcommand{\To}{\Longrightarrow}