Add my Fish Config
This commit is contained in:
parent
f457edec10
commit
810bc8380f
1 changed files with 37 additions and 0 deletions
37
.config/fish/config.fish
Normal file
37
.config/fish/config.fish
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# NAS -- penser à créer les dossiers : sudo mkdir /mnt/z && sudo mkdir /mnt/z
|
||||||
|
sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000
|
||||||
|
sudo mount -t drvfs 'Z:' /mnt/z -o metadata,uid=1000,gid=1000
|
||||||
|
|
||||||
|
# COULEUR MANUELS
|
||||||
|
set -x MANPAGER "sh -c 'col -bx | batcat -l man -p'"
|
||||||
|
|
||||||
|
# SSH
|
||||||
|
fish_ssh_agent
|
||||||
|
|
||||||
|
# Raccourcis
|
||||||
|
abbr ls 'ls -lah'
|
||||||
|
abbr cp 'cp -r'
|
||||||
|
abbr rm 'rm -rf'
|
||||||
|
abbr gcc 'gcc -Wall -Wextra -fanalyzer -g'
|
||||||
|
abbr activate 'source bin/activate.fish'
|
||||||
|
# abbr sugit 'sudo "GIT_SSH_COMMAND=exec sudo -Hu $LOGNAME SSH_AUTH_SOCK=$SSH_AUTH_SOCK ssh" git'
|
||||||
|
# abbr sugitfix 'sudo git config core.autocrlf true && sudo git config core.filemode false'
|
||||||
|
abbr vs 'code .'
|
||||||
|
abbr untgz 'tar -xvzf'
|
||||||
|
abbr cd.. 'cd ..'
|
||||||
|
# Exclu Linux
|
||||||
|
abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh && sudo flatpak update'
|
||||||
|
abbr d 'nautilus . > /dev/null 2>&1 &;disown'
|
||||||
|
abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify > /dev/null 2>&1 &;disown'
|
||||||
|
# Exclu WSL
|
||||||
|
# abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo do-release-upgrade'
|
||||||
|
# abbr d 'explorer.exe .'
|
||||||
|
# Exclu fac
|
||||||
|
# abbr bocal 'ssh bocal -t sh'
|
||||||
|
|
||||||
|
# GL4Dummies
|
||||||
|
set -gx PATH $HOME/local/bin $PATH
|
||||||
|
set -gx LD_LIBRARY_PATH $HOME/local/lib $LD_LIBRARY_PATH
|
||||||
|
|
||||||
|
# Exercism
|
||||||
|
set -gx PATH ~/bin $PATH
|
Reference in a new issue