Update shell configs

This commit is contained in:
Leon Grünewald 2024-03-11 12:18:02 +01:00
parent 2c7fa84ca0
commit f43db4d7a9
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,7 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
# tabtab source for packages
# uninstall by removing these lines
[ -f ~/.config/tabtab/fish/__tabtab.fish ]; and . ~/.config/tabtab/fish/__tabtab.fish; or true

View file

@ -1,5 +1,12 @@
fish_add_path $HOME/.local/bin
export BROWSER="firefox" export BROWSER="firefox"
if type -q lvim
export EDITOR="lvim"
alias vim lvim
else
export EDITOR="vim" export EDITOR="vim"
end
alias gitroot='cd $(git rev-parse --show-toplevel)' alias gitroot='cd $(git rev-parse --show-toplevel)'
alias dc-up="docker compose up" alias dc-up="docker compose up"
@ -9,3 +16,4 @@ alias kubectl="minikube kubectl --"
# abbr cd $(find ~/workspace -mindepth 1 -maxdepth 1 -type d | sed "s|$HOME|~|g" | fzf) # abbr cd $(find ~/workspace -mindepth 1 -maxdepth 1 -type d | sed "s|$HOME|~|g" | fzf)
alias ws="cd ~/workspace/\$(ls ~/workspace | fzf)" alias ws="cd ~/workspace/\$(ls ~/workspace | fzf)"

View file

@ -5,6 +5,6 @@ case ":$PATH:" in
esac esac
# Added by Toolbox App # Added by Toolbox App
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts:$HOME/.local/bin"
. "$HOME/.cargo/env" . "$HOME/.cargo/env"