Amend fish config with starship

This commit is contained in:
Samuel Ortion 2023-07-16 15:16:14 +02:00
parent 711849c6a3
commit 319d7a1bcf
5 changed files with 17 additions and 10 deletions

View File

@ -2,6 +2,8 @@ alias o="evince2"
alias pro="cd ~/Documents/Projects" alias pro="cd ~/Documents/Projects"
alias doc="cd ~/Documents" alias doc="cd ~/Documents"
alias vim="nvim"
alias activenv="mamba activate hic2023py3.11"
alias int="cd ~/Documents/cours/licence/L3/stage/pasteur/project/" alias int="cd ~/Documents/cours/licence/L3/stage/pasteur/project/"

View File

@ -1,6 +1,7 @@
alias o="evince2" alias o="evince2"
alias vim="nvim" alias vim="nvim"
alias activenv="conda activate hic2023py3.11"
alias pro="cd ~/Documents/Projects" alias pro="cd ~/Documents/Projects"
alias doc="cd ~/Documents" alias doc="cd ~/Documents"
@ -11,12 +12,11 @@ export templates_dir="~/Documents/Projects/templates"
alias new.td='copier "$templates_dir/latex/td.template"' alias new.td='copier "$templates_dir/latex/td.template"'
alias new.cm='copier "$templates_dir/latex/cm.template"' alias new.cm='copier "$templates_dir/latex/cm.template"'
alias new.letter='copier "$templates_dir/latex/letter.template"' alias new.letter='copier "$templates_dir/latex/letter.template"'
alias taquin.sync="rsync -azvu '/home/sortion/Documents/cours/licence/L3/S6/intelligence artificielle/DM/DM2/taquin/' leon.talpa:/home/sortion/Documents/Projects/taquin/ && rsync -azvu leon.talpa:/home/sortion/Documents/Projects/taquin/ '/home/sortion/Documents/cours/licence/L3/S6/intelligence artificielle/DM/DM2/taquin/'"
function pdfcompress function pdfcompress
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile="$2" "$1"; gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile="$2" "$1"
end end
function colorinvert function colorinvert
convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')" convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
end end

4
.zshrc
View File

@ -10,7 +10,7 @@ antigen use oh-my-zsh
antigen bundle nerdfonts antigen bundle nerdfonts
antigen theme ys # antigen theme ys
antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-syntax-highlighting
@ -20,6 +20,8 @@ antigen bundle git
antigen apply antigen apply
source <(/home/sortion/.cargo/bin/starship init zsh --print-full-init)
if [[ -x /usr/bin/fortune ]]; then if [[ -x /usr/bin/fortune ]]; then
fortune fortune
fi fi

View File

@ -19,6 +19,9 @@ fishcfg:
cp ./.aliases.fish ~/.aliases.fish cp ./.aliases.fish ~/.aliases.fish
cp starship.toml ~/.config/starship.toml cp starship.toml ~/.config/starship.toml
nvim:
antigen: antigen:
git clone https://github.com/zsh-users/antigen.git git clone https://github.com/zsh-users/antigen.git

View File

@ -14,9 +14,9 @@ $character"""
style = "bright-blue" style = "bright-blue"
[character] [character]
success_symbol = "[](purple)" success_symbol = "[](bright-purple)"
error_symbol = "[](red)" error_symbol = "[](bright-red)"
vimcmd_symbol = "[](green)" vimcmd_symbol = "[](bright-green)"
[git_branch] [git_branch]
format = "[$branch]($style)" format = "[$branch]($style)"
@ -24,7 +24,7 @@ style = "bright-black"
[git_status] [git_status]
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)" format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)"
style = "cyan" style = "bright-cyan"
conflicted = "" conflicted = ""
untracked = "" untracked = ""
modified = "" modified = ""