Compare commits
2 Commits
58b44619d9
...
3ec7c153d7
Author | SHA1 | Date |
---|---|---|
Samuel Ortion | 3ec7c153d7 | |
Samuel Ortion | 35860a18e8 |
4
.aliases
4
.aliases
|
@ -1,5 +1,7 @@
|
||||||
alias o="xdg-open"
|
alias o="xdg-open"
|
||||||
|
|
||||||
|
alias pdf="latexmk -pdf -gg"
|
||||||
|
|
||||||
alias pro="cd ~/Documents/Projects"
|
alias pro="cd ~/Documents/Projects"
|
||||||
alias doc="cd ~/Documents"
|
alias doc="cd ~/Documents"
|
||||||
alias int="cd ~/Documents/course/licence/L3/stage/pasteur/projects/"
|
alias int="cd ~/Documents/course/licence/L3/stage/pasteur/projects/"
|
||||||
|
@ -18,7 +20,7 @@ csv_fields() {
|
||||||
|
|
||||||
alias edit="$VISUAL"
|
alias edit="$VISUAL"
|
||||||
|
|
||||||
export templates_dir="/home/$USER/Documents/Projects/templates"
|
export templates_dir="~/Documents/Projects/templates"
|
||||||
alias new.td='copier copy --trust "$templates_dir/latex/td.template"'
|
alias new.td='copier copy --trust "$templates_dir/latex/td.template"'
|
||||||
alias new.cm='copier copy --trust "$templates_dir/latex/cm.template"'
|
alias new.cm='copier copy --trust "$templates_dir/latex/cm.template"'
|
||||||
alias new.letter='copier copy --trust "$templates_dir/latex/letter.template"'
|
alias new.letter='copier copy --trust "$templates_dir/latex/letter.template"'
|
||||||
|
|
38
.latexmkrc
38
.latexmkrc
|
@ -1,5 +1,5 @@
|
||||||
$hash_calc_ignore_pattern{aux} =
|
$hash_calc_ignore_pattern{aux} =
|
||||||
'^\\\\gdef\\\\minted@oldcachelist\{,'
|
'^\\\\gdef\\\\minted@oldcachelist\{,'
|
||||||
. '|^\s*default\.pygstyle,'
|
. '|^\s*default\.pygstyle,'
|
||||||
. '|^\s*[[:xdigit:]]+\.pygtex';
|
. '|^\s*[[:xdigit:]]+\.pygtex';
|
||||||
|
|
||||||
|
@ -33,39 +33,3 @@ sub biber {
|
||||||
return system "biber", @args;
|
return system "biber", @args;
|
||||||
}
|
}
|
||||||
|
|
||||||
# $silent = 1; # This adds "-interaction batchmode"
|
|
||||||
# $silence_logfile_warnings = 1;
|
|
||||||
|
|
||||||
END {
|
|
||||||
local $?; # do not override previous exit status
|
|
||||||
if ( -s "$root_filename.blg" and open my $bibfile,
|
|
||||||
'<', "$root_filename.blg" )
|
|
||||||
{
|
|
||||||
print("**********************\n");
|
|
||||||
print("bibtex/biber messages:\n");
|
|
||||||
while ( my $line = <$bibfile> ) {
|
|
||||||
if ( $line =~ /You.ve used/ ) {
|
|
||||||
last;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
print($line);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
close($bibfile);
|
|
||||||
}
|
|
||||||
if ( -s "$root_filename.ilg" and open my $indfile,
|
|
||||||
'<', "$root_filename.ilg" )
|
|
||||||
{
|
|
||||||
print("*************************\n");
|
|
||||||
print("makeindex/xindy messages:\n");
|
|
||||||
while ( my $line = <$indfile> ) {
|
|
||||||
print($line);
|
|
||||||
}
|
|
||||||
close($indfile);
|
|
||||||
}
|
|
||||||
if ( -s "$root_filename.log" ) {
|
|
||||||
print("***************\n");
|
|
||||||
print("LaTeX messages:\n");
|
|
||||||
Run_subst("texlogsieve %R.log");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
10
.loadenv.sh
10
.loadenv.sh
|
@ -39,6 +39,16 @@ if [ -f "/home/sortion/.local/share/miniforge3/etc/profile.d/mamba.sh" ]; then
|
||||||
fi
|
fi
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
if type opam > /dev/null; then
|
||||||
|
eval $(opam env)
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATH="/home/$USER/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
|
PERL5LIB="/home/$USER/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
|
PERL_LOCAL_LIB_ROOT="/home/$USER/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
PERL_MB_OPT="--install_base \"/home/$USER/perl5\""; export PERL_MB_OPT;
|
||||||
|
PERL_MM_OPT="INSTALL_BASE=/home/$USER/perl5"; export PERL_MM_OPT;
|
||||||
|
|
||||||
# Init Guix
|
# Init Guix
|
||||||
if command -v guix &> /dev/null
|
if command -v guix &> /dev/null
|
||||||
then
|
then
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ source:
|
||||||
cp ~/.dotfiles/.loadenv.sh ~/.loadenv.sh
|
cp ~/.dotfiles/.loadenv.sh ~/.loadenv.sh
|
||||||
cp ~/.dotfiles/.vimrc ~/.vimrc
|
cp ~/.dotfiles/.vimrc ~/.vimrc
|
||||||
cp ~/.dotfiles/.gitconfig ~/.gitconfig
|
cp ~/.dotfiles/.gitconfig ~/.gitconfig
|
||||||
cp ~/.dotfiles/.latexmkrc ~/.latexmk
|
cp ~/.dotfiles/.latexmkrc ~/.latexmkrc
|
||||||
|
|
||||||
antigen:
|
antigen:
|
||||||
git clone https://github.com/zsh-users/antigen.git
|
git clone https://github.com/zsh-users/antigen.git
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
function fish_greeting
|
|
||||||
fortune
|
|
||||||
end
|
|
||||||
|
|
||||||
function !!
|
|
||||||
set var (history | head -n 1)
|
|
||||||
if test $argv
|
|
||||||
if test $argv = sudo #; or "any other command you want to prepend"
|
|
||||||
eval $argv $var
|
|
||||||
else
|
|
||||||
eval $var $argv
|
|
||||||
end
|
|
||||||
else
|
|
||||||
eval $var
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
set path_append "/home/sortion/.luarocks/bin:/home/sortion/.julia/bin:/home/sortion/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/quarto/quarto-1.2.335/bin:/home/sortion/.local/bin::/home/sortion/Documents/cours/tools/bin/"
|
|
||||||
for path in (string split ":" $path_append)
|
|
||||||
fish_add_path $path
|
|
||||||
end
|
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
|
||||||
if test -f /home/sortion/.local/share/mambaforge/bin/conda
|
|
||||||
eval /home/sortion/.local/share/mambaforge/bin/conda "shell.fish" hook $argv | source
|
|
||||||
end
|
|
||||||
|
|
||||||
if test -f "/home/sortion/.local/share/mambaforge/etc/fish/conf.d/mamba.fish"
|
|
||||||
source "/home/sortion/.local/share/mambaforge/etc/fish/conf.d/mamba.fish"
|
|
||||||
end
|
|
||||||
# <<< conda initialize <<
|
|
||||||
|
|
||||||
function __conda_add_prompt
|
|
||||||
end # Avoid conda prompt
|
|
||||||
|
|
||||||
source ~/.aliases.fish
|
|
||||||
|
|
||||||
starship init fish | source
|
|
|
@ -1,52 +0,0 @@
|
||||||
format = """
|
|
||||||
$username\
|
|
||||||
$hostname\
|
|
||||||
$directory\
|
|
||||||
$git_branch\
|
|
||||||
$git_state\
|
|
||||||
$git_status\
|
|
||||||
$cmd_duration\
|
|
||||||
$fill $conda$python\
|
|
||||||
$line_break\
|
|
||||||
$character"""
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
style = "bright-blue"
|
|
||||||
|
|
||||||
[character]
|
|
||||||
success_symbol = "[❯](purple)"
|
|
||||||
error_symbol = "[❯](red)"
|
|
||||||
vimcmd_symbol = "[❮](green)"
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
format = "[$branch]($style)"
|
|
||||||
style = "bright-black"
|
|
||||||
|
|
||||||
[git_status]
|
|
||||||
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
|
|
||||||
style = "cyan"
|
|
||||||
conflicted = ""
|
|
||||||
untracked = ""
|
|
||||||
modified = ""
|
|
||||||
staged = ""
|
|
||||||
renamed = ""
|
|
||||||
deleted = ""
|
|
||||||
stashed = "≡"
|
|
||||||
|
|
||||||
[git_state]
|
|
||||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
|
||||||
style = "bright-black"
|
|
||||||
|
|
||||||
[cmd_duration]
|
|
||||||
format = "[$duration]($style) "
|
|
||||||
style = "yellow"
|
|
||||||
|
|
||||||
[python]
|
|
||||||
format = "[$symbol$virtualenv]($style) "
|
|
||||||
style = "bright-black"
|
|
||||||
|
|
||||||
[conda]
|
|
||||||
format = '[$symbol$environment](bright-green) '
|
|
||||||
|
|
||||||
[fill]
|
|
||||||
symbol = " "
|
|
Loading…
Reference in New Issue