1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Compare commits

...

5 Commits

Author SHA1 Message Date
671fa71ae3 Plugin updates 2024-05-14 14:10:03 +02:00
d43495f5e8 Nix completions v0.5.1 2024-05-14 14:01:56 +02:00
00f39b4fad SHLVL integration 2024-05-14 13:50:44 +02:00
5dbac71442 Better paste.rs ergonomics 2024-05-14 12:13:35 +02:00
4829a72892 Friendship with direnv ended 2024-05-14 12:13:10 +02:00
5 changed files with 8 additions and 9 deletions

View File

@@ -108,7 +108,9 @@ alias gci='gcloud compute instances'
# Not an alias but useful nonetheless.
function pasters() {
local file=${1:-/dev/stdin}
curl --data-binary @${file} https://paste.rs
# Explicitly write the newline because paste.rs doesn't and sakura
# gets confused.
curl --write-out "\n" --data-binary @${file} https://paste.rs
}
# Ensure we can make cheap copies on btrfs
@@ -307,8 +309,3 @@ fi
if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fi
# Initialize direnv if available
if (($+commands[direnv])); then
eval "$(direnv hook zsh)"
fi

View File

@@ -53,6 +53,7 @@ function prompt_ps1() {
host="%S%B$host"
fi
local shlvl="%{$fg[black]%}%{$bg[magenta]%}\${(l:$SHLVL-1::>:)}%{$reset_color%}"
local prompt="%n@%{$fg[cyan]%}%m$rs %# "
ps1=(
"$host"
@@ -61,6 +62,7 @@ function prompt_ps1() {
$'\n'
'$(prompt_handle_virtualenv)'
'${vcs_info_msg_0_:+${vcs_info_msg_0_}\n}'
"$shlvl"
"$prompt"
)
echo "${(j::)ps1}"