Delete .profile, move aliases into fish function directory
This commit is contained in:
parent
969264c21a
commit
c8953aa6d0
9
.profile
9
.profile
|
@ -1,9 +0,0 @@
|
||||||
# Start keychain
|
|
||||||
command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask -Q id_ed25519 id_rsa)
|
|
||||||
|
|
||||||
# Set local paths
|
|
||||||
LOCAL_BIN="$HOME/.local/bin"
|
|
||||||
echo $PATH | grep -i "$LOCAL_BIN" - > /dev/null || export PATH=$PATH:$LOCAL_BIN
|
|
||||||
|
|
||||||
DOTFILES_BIN="$(dirname $(dirname $(readlink -f $0)))/bin"
|
|
||||||
echo $PATH | grep -i "$DOTFILES_BIN" - > /dev/null || export PATH=$PATH:$DOTFILES_BIN
|
|
|
@ -1,9 +1,7 @@
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
|
set -gx EDITOR nvim
|
||||||
|
set -gx VISUAL nvim
|
||||||
fish_config theme choose CatppuccinMacchiato
|
fish_config theme choose CatppuccinMacchiato
|
||||||
alias vim="nvim"
|
|
||||||
alias vimdiff="nvim -d"
|
|
||||||
alias nvimdiff="nvim -d"
|
|
||||||
alias lg="lazygit"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function starship_transient_prompt_func
|
function starship_transient_prompt_func
|
||||||
|
|
3
config/fish/functions/lg.fish
Normal file
3
config/fish/functions/lg.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function lg
|
||||||
|
lazygit $argv
|
||||||
|
end
|
3
config/fish/functions/nvimdiff.fish
Normal file
3
config/fish/functions/nvimdiff.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function nvimdiff
|
||||||
|
nvim -d
|
||||||
|
end
|
3
config/fish/functions/vim.fish
Normal file
3
config/fish/functions/vim.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function vim
|
||||||
|
nvim
|
||||||
|
end
|
3
config/fish/functions/vimdiff.fish
Normal file
3
config/fish/functions/vimdiff.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function vimdiff
|
||||||
|
vim -d
|
||||||
|
end
|
Loading…
Reference in a new issue