2022-10-14 13:46:51 +01:00
|
|
|
if status is-interactive
|
|
|
|
# Commands to run in interactive sessions can go here
|
|
|
|
end
|
|
|
|
|
|
|
|
bind \cH backward-kill-path-component
|
|
|
|
bind "[3;5~" kill-word
|
|
|
|
|
|
|
|
function config
|
|
|
|
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv
|
|
|
|
end
|
|
|
|
|
2022-10-18 15:11:09 +01:00
|
|
|
#Vim mode
|
|
|
|
fish_vi_key_bindings
|
|
|
|
|
2022-10-14 13:46:51 +01:00
|
|
|
function vim
|
|
|
|
nvim $argv
|
|
|
|
end
|
|
|
|
|
|
|
|
function core
|
|
|
|
xhost +local:root
|
|
|
|
sudo docker exec -it core core-gui
|
|
|
|
end
|
|
|
|
|
2022-11-08 15:48:21 +00:00
|
|
|
function i
|
|
|
|
sudo pacman -S $argv
|
|
|
|
end
|
2022-10-14 13:46:51 +01:00
|
|
|
|
2022-11-08 15:48:21 +00:00
|
|
|
function u
|
|
|
|
sudo pacman -Syu $argv
|
|
|
|
end
|
2022-10-14 13:46:51 +01:00
|
|
|
|
|
|
|
set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin /home/afonso/.ghcup/bin $PATH # ghcup-env
|
2022-11-08 15:48:21 +00:00
|
|
|
set PATH $HOME/.local/bin $HOME/.cargo/bin $HOME/.local/bin $PATH
|