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
|
2022-12-01 15:59:06 +00:00
|
|
|
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv
|
2022-10-14 13:46:51 +01:00
|
|
|
end
|
|
|
|
|
2022-10-18 15:11:09 +01:00
|
|
|
#Vim mode
|
2022-12-01 15:59:06 +00:00
|
|
|
#fish_vi_key_bindings
|
|
|
|
fish_default_key_bindings
|
2022-10-14 13:46:51 +01:00
|
|
|
function vim
|
|
|
|
nvim $argv
|
|
|
|
end
|
|
|
|
|
2022-11-23 14:45:22 +00:00
|
|
|
function launch-term
|
2023-01-01 16:31:21 +00:00
|
|
|
docker exec -it core xterm -bg black -fg white -fa 'DejaVu Sans Mono' -fs 16 -e vcmd -c /tmp/pycore.1/$argv -- sh -c "cd /rust-cc && /bin/bash"
|
2022-11-23 14:45:22 +00:00
|
|
|
end
|
|
|
|
|
2023-02-22 13:18:03 +00:00
|
|
|
function cat
|
|
|
|
bat $argv
|
|
|
|
end
|
|
|
|
|
2022-10-14 13:46:51 +01:00
|
|
|
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-11 13:10:10 +00:00
|
|
|
function s
|
|
|
|
sudo pacman -Ss $argv
|
|
|
|
end
|
|
|
|
|
2022-11-08 15:48:21 +00:00
|
|
|
function u
|
2023-02-24 05:59:26 +00:00
|
|
|
sudo pacman -Sy && sudo powerpill -Su
|
2022-11-08 15:48:21 +00:00
|
|
|
end
|
2022-10-14 13:46:51 +01:00
|
|
|
|
2023-01-01 16:31:21 +00:00
|
|
|
function mónade
|
|
|
|
ghci $argv
|
|
|
|
end
|
|
|
|
|
2022-12-13 15:43:36 +00:00
|
|
|
set -gx EDITOR vim
|
2023-01-14 04:05:17 +00:00
|
|
|
set -gx TERM 'xterm-256color'
|
2022-12-13 15:43:36 +00:00
|
|
|
|
2023-02-22 13:18:03 +00:00
|
|
|
fish_add_path $HOME/.nix-profile/bin
|
2023-01-01 16:31:21 +00:00
|
|
|
fish_add_path /var/lib/snapd/snap/bin
|
2022-12-15 04:19:17 +00:00
|
|
|
fish_add_path $HOME/.local/share/nvim/mason/bin
|
2023-02-22 13:18:03 +00: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-12-01 15:59:06 +00:00
|
|
|
fish_add_path /home/afonso/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin
|
2022-11-22 18:07:26 +00:00
|
|
|
fish_add_path $HOME/.local/bin
|
|
|
|
fish_add_path $HOME/.cargo/bin
|
2022-12-15 04:19:17 +00:00
|
|
|
|
2023-02-22 13:18:03 +00: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
|