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 doc="cd ~/Documents"
alias vim="nvim"
alias activenv="mamba activate hic2023py3.11"
alias int="cd ~/Documents/cours/licence/L3/stage/pasteur/project/"

View File

@ -1,6 +1,7 @@
alias o="evince2"
alias vim="nvim"
alias activenv="conda activate hic2023py3.11"
alias pro="cd ~/Documents/Projects"
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.cm='copier "$templates_dir/latex/cm.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
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";
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"
end
function colorinvert
convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
function colorinvert
convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
end

4
.zshrc
View File

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

View File

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

View File

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