mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Misc improvements
This commit is contained in:
@@ -76,6 +76,11 @@ if [[ -d "$HOME/.local/bin" ]]; then
|
||||
path+="$HOME/.local/bin"
|
||||
fi
|
||||
|
||||
# Add cargo binaries to path
|
||||
if [[ -d "$HOME/.cargo/bin" ]]; then
|
||||
path+="$HOME/.cargo/bin"
|
||||
fi
|
||||
|
||||
# Set up GIMP
|
||||
export GIMP2_DIRECTORY="$XDG_CONFIG_HOME"/gimp
|
||||
|
||||
|
||||
@@ -78,6 +78,9 @@ alias wget="wget --hsts-file=\"$XDG_CACHE_HOME/wget-hsts\""
|
||||
alias makej="make -j$(nproc)"
|
||||
alias sdc='sudo docker-compose'
|
||||
alias nrc='nix run -c'
|
||||
alias gcs='gcloud compute ssh'
|
||||
alias gscp='gcloud compute scp'
|
||||
alias gci='gcloud compute instances'
|
||||
|
||||
# Not an alias but useful nonetheless.
|
||||
function pasters() {
|
||||
@@ -211,6 +214,11 @@ function _pip_completion {
|
||||
compctl -K _pip_completion pip
|
||||
# pip zsh completion end
|
||||
|
||||
# Load gcloud completions if they are available
|
||||
if [[ -f /usr/share/google-cloud-sdk/completion.zsh.inc ]]; then
|
||||
source /usr/share/google-cloud-sdk/completion.zsh.inc
|
||||
fi
|
||||
|
||||
# Enable autocorrect, in case I still get it wrong
|
||||
setopt correct
|
||||
export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [ynae] "
|
||||
|
||||
Reference in New Issue
Block a user