mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Compare commits
5 Commits
33f24fe6de
...
671fa71ae3
| Author | SHA1 | Date | |
|---|---|---|---|
| 671fa71ae3 | |||
| d43495f5e8 | |||
| 00f39b4fad | |||
| 5dbac71442 | |||
| 4829a72892 |
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Submodule zsh/.config/zsh/plugins/nix-zsh-completions updated: 247e8cc192...6e782b9709
Submodule zsh/.config/zsh/plugins/zsh-auto-notify updated: f8cd00f2b6...43dbc4eb56
Reference in New Issue
Block a user