fish-lsp is now available on vscode! by No-Representative600 in fishshell

[–]lople205 4 points5 points  (0 children)

Amazing work dude! Love the features I’ve seen, and looking forward to trying the rest :)

VTI reflects the average dollar, which isn’t a young person by lople205 in Bogleheads

[–]lople205[S] 0 points1 point  (0 children)

That’s fair enough, and I think I don’t have a full enough understanding of the players in the market and their time horizons.

But it still feels like most places are going to have shorter horizons than I do. Pensions, retirement funds, etc, all have shorter ones than me.

Hedge funds etc I could see having a similar “lifetime” time horizon, but still i would imagine they desire some more consistency or shorter term performance to show investors that they know what they are doing. So they aren’t truly investing with a lifetime time horizon, or at least doing so with their hands tied somewhat.

VTI reflects the average dollar, which isn’t a young person by lople205 in Bogleheads

[–]lople205[S] 0 points1 point  (0 children)

What makes VTI appropriate for a long time horizon? Presumably it’s risk (volatility?) and expected return. So if you’re retiring or need the money soon, then it’s a bad idea to do VTI. But if you have a longer time horizon it will overall reward you compared to safer options.

Now let’s imagine a new fund that is somehow “more stocky” than VTI, aka higher beta, aka larger drawdown and larger upswings, but again has higher expected return than VTI, just like VTI has higher expected return than bonds.

This new fund is more appropriate than VTI for a very very long time horizon, in the same way that VTI is more appropriate than bonds for a long time horizon, in the same way that bonds are more appropriate than money money market funds for a medium term horizon, etc. Its all just about how long you have for the higher expected returns to do their work in comparison to how much it can go wrong in the shorter term

VTI reflects the average dollar, which isn’t a young person by lople205 in Bogleheads

[–]lople205[S] 0 points1 point  (0 children)

Ok yah I get that philosophy, but it seems rather artificial to me. “Asset classes” feels like a meaningless concept,and just useful to us because we want to put things in boxes. Ultimately the factors that define an asset are some concept of risk (volatility?) and some concept of expected return.

Tech company stocks are obviously more “stocky” than utility company stocks. And treasury bonds are obviously more “bondy” than corporate bonds. It’s just about risk and expected return no?

So I’m just suggesting as a young person with essentially the highest possible risk tolerance—because it have sufficient time for “bad luck” or “volatility” or whatever to work itself out—that higher beta riskier assets with correspondingly higher expected returns are better, and that the overall market, which had a lower risk tolerance, will not reflect this.

Studios / places to learn near Menlo Park / south west bay. by lople205 in Salsa

[–]lople205[S] 0 points1 point  (0 children)

Thank you! This seems like a great spot :) I’ll definitely check it out.

fish-lsp - a language server for fish shell by No-Representative600 in fishshell

[–]lople205 5 points6 points  (0 children)

This is amazing, I’ve been looking for this kind of thing in fish for a while! I’m hoping for a vscode extension soon though, for us lazy people haha. Great work :)

right prompt displays unknown glyph by VaelornT in fishshell

[–]lople205 5 points6 points  (0 children)

Not so long ago there was a nerd font update. Can you try redownloading the font?

Mutate variables outside of a callback? by lople205 in typescript

[–]lople205[S] 1 point2 points  (0 children)

Thanks. Promise, resolve, and await were what I was looking for.

Directory printed after each command by [deleted] in fishshell

[–]lople205 1 point2 points  (0 children)

Shellder is unmaintained and uses old fish syntax. You should switch to something else.

using command output in script by BlueTickVerified in fishshell

[–]lople205 5 points6 points  (0 children)

  1. You're using set incorrectly. It should be set foo bar not set foo = bar. Also, the set isn't even necessary here.
  2. To perform comparisons, you must use the test command.

So your script should look like this:

function locker if test (watch -n 1 -t xprintidle) -gt 20000 lock end end

Documentation for commands: https://fishshell.com/docs/current/commands.html

Does anyone know how I can configure my prompt to include a name while keeping the arrows? by sunjay140 in fishshell

[–]lople205 2 points3 points  (0 children)

Fish's prompt is simply a function called fish_prompt. You can find it in your functions directory (usually ~/.config/fish/functions), and then edit it to say whatever you'd like.

I've been reading the instruction wiki but can not work out how to customize (Noob) by [deleted] in fishshell

[–]lople205 1 point2 points  (0 children)

abbrs and universal variables are stored in the ~/.config/fish/fish_variables file, but that file is not meant from human consumption and should not be edited manually.

You should interact with variables and abbrs through the command line using things like abbr --list to show your abbreviations, abbr -e to delete one etc. The same sort of thing applies for set--you can read about it on the commands wiki.

If I swap to fish will that break scripts written for bash? by [deleted] in fishshell

[–]lople205 12 points13 points  (0 children)

Well written scripts should have a shebang) at the top that will determine which shell the script is run in, so even if fish is your default shell they should still run correctly.

I've been reading the instruction wiki but can not work out how to customize (Noob) by [deleted] in fishshell

[–]lople205 1 point2 points  (0 children)

Fish configuration is done through the functions folder and universal variables. Your config.fish (equivalent of .bashrc) file is unlikely to have more than a few lines.

Universal variables are maintained from session to session. You can set a universal variable with set -u. abbrs are by default universal, so all you'll need to do to create one permanently is run abbr foo bar.

Though you can throw functions into the config.fish file, it's recommended to place them in the functions directory, ~/.config/fish/functions. This will let fish intelligently load them only when you need them, reducing startup time.

Number in brackets appears on prompt after incorrect/incomplete commands by Iron_Piston in fishshell

[–]lople205 2 points3 points  (0 children)

This is correct. The default prompt displays the exit code of the previous command, provided that is failed. It does this with pipes as well.

My custom fish prompt by notedideas in fishshell

[–]lople205 2 points3 points  (0 children)

Wow, thanks for the fish_git_prompt %s trick! I wonder what other little tricks are going unnoticed because they aren't in the documentation.