Skip to content

Commit 6a52b2a

Browse files
committed
hostname in fish right prompot. dont prunetags.
1 parent 1ab9269 commit 6a52b2a

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.gitconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@
179179
[fetch]
180180
# prune stuff locally if it was deleted from the remote
181181
prune = true
182-
pruneTags = true
183182
all = true
184183

185184
[stash]

fish/aliases.fish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ alias ls='eza --classify=auto --color --group-directories-first --sort=extension
2323
alias la='eza --classify=auto --color --group-directories-first --sort=extension -a -l --octal-permissions --no-permissions'
2424

2525
# use gdu (gdu-go) if available, as its faster on ssd
26-
alias ncdu "command -v gdu-go > /dev/null && gdu-go || ncdu"
26+
# Ehh.. yes gdu is much faster but doesnt support ** in ignore/excludes. use them deliberately for now
27+
# alias ncdu "command -v gdu-go > /dev/null && gdu-go || ncdu"
2728

2829
# typos and abbreviations
2930
abbr g git

fish/chromium.fish

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ end
5757
function dtb --description "build devtools with watch_build.js - my favorite"
5858
cd ./(git rev-parse --show-cdup)
5959

60-
# dont let vpython use a 2.7.. seems to only affect this dude
61-
VPYTHON_BYPASS="manually managed python not supported by chrome operations" node scripts/watch_build.js
60+
npm run build -- --watch
6261
end
6362

6463

fish/functions/fish_prompt.fish

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function fish_prompt
221221

222222
# instead of a onetime sourcing like
223223
# test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
224-
# here's a fancy lazy instantiated integration. but.. still slow and weird.
224+
# here's a fancy lazy instantiated integration. but.. still slow and weird.
225225
# iterms timestamps on scrollbar hover are probably good enough for now.
226226
# but here's the ugly thing i ended up with. prob delete later.
227227
# if not set -q __iterm2_integration_initialized
@@ -262,7 +262,7 @@ function fish_prompt
262262
# end
263263
functions -q iterm2_prompt_mark and iterm2_prompt_mark; # iterm blue marker if defined
264264

265-
# echo -sn $user "@" $hostname
265+
266266
set_color $lucid_cwd_color
267267
echo -sn $cwd
268268
set_color normal
@@ -291,4 +291,14 @@ function fish_prompt
291291
set_color "$prompt_symbol_color"
292292
echo -n "$prompt_symbol "
293293
set_color normal
294-
end
294+
end
295+
296+
297+
298+
if test -n "$SSH_TTY"
299+
function fish_right_prompt;
300+
set_color $fish_color_host
301+
echo -sn "(@" $hostname ")"
302+
set_color normal
303+
end
304+
end

0 commit comments

Comments
 (0)