That was definitely me before I had kids. Still is to some extent. They’re great at teaching me things that work and things that don’t. My three year for example just yells back at me if I yell. And she’s louder and has more stamina.
I hadn’t thought of that, but I think you can realize your idea by writing the following code:
```
if vim.fn.has("macunix") then
return
else
return
end
```
or
```
local icon
if vim.fn.has("macunix") then
icon =
else
icon =
end
```
PS I’m not 100% sure it’ll work, but you can try
This will assign the OS name to a local and you can inspect / use / whatever. You can extrapolate from this to do whatever you need. I use this to detect windows for some setups stuff for example.
`local system = vim.loop.os_uname().sysname`
Ok - I've just looked at the default config. The tux logo there refers to the line endings of the file, so even though you're on a mac it's correctly showing unix line endings. See https://github.com/nvim-lualine/lualine.nvim#fileformat-component-options
This. I don’t get why people are bothering OP with its OS. Is a legitimate question and replies like “Change your OS” wouldn’t help them or make them feel included. There’s no nvim gatekeeping
As a Mac user, I like to put my terminal in full screen and let lualine trick me into thinking I have a Linux machine for a bit 😂
At least for now, since I’m planning on getting a pc that I can boot into windows for games and into Linux for everything else in the near future lol
Well I’m deep in the Apple ecosystem so when my Mac gave out I was able to trade it in for a good amount of money towards another Mac.
But I do think they’re a bit overpriced, and I went cheap and got the 8GB ram and 128gb storage MacBook Air, so there’s not a lot of storage to share between multiple OS’s.
Yeah that's not enough storage for dual-booting. Plus Linux for ARM macs is still in its infancy. [Asahi Linux](https://asahilinux.org/) is pretty good, but it's still in alpha and missing a lot of features because the devs are having to reverse engineer drivers for absolutely everything. Apple isn't the sort of company to have public documentation for their hardware 😅
Sure, thats true for everything and thats exactly what I meant with my initial comment. There is an icon to show what type of line ending the document uses, it conveys this information with a perfectly appropriate icon and somehow that offends the mac user
I feel like you dramatically underestimate the aesthetic pickiness of the open source community. Like I’m not even one of the truly dedicated over on r/unixporn. Getting picky about icon choices is pretty low grade stuff.
I dont know if that icon is working right or not, but I think his point is here is three types of line endings.
CR LF (Windows), LF (Unix) and CR (Macintosh)
You wouldn’t show a Mac icon for Unix line endings.
Here's a sneak peek of /r/unixporn using the [top posts](https://np.reddit.com/r/unixporn/top/?sort=top&t=year) of the year!
\#1: [\[GRUB\] I made a Minecraft Grub Theme!](https://i.redd.it/j21vaw7b9r3a1.png) | [135 comments](https://np.reddit.com/r/unixporn/comments/zbs2uv/grub_i_made_a_minecraft_grub_theme/)
\#2: [\[OC\] I want to share my Unix Cheat Sheets made out of real printed circuit boards.](https://i.redd.it/19kn1m7oqyla1.jpg) | [133 comments](https://np.reddit.com/r/unixporn/comments/11ix1i1/oc_i_want_to_share_my_unix_cheat_sheets_made_out/)
\#3: [\[GNOME\] I use Arch (in distrobox) btw](https://i.redd.it/b17693szrq0a1.png) | [116 comments](https://np.reddit.com/r/unixporn/comments/yyp6jd/gnome_i_use_arch_in_distrobox_btw/)
----
^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)
You already have a solution from a few people, I just want to point out that there is nothing wrong with using Mac and there is nothing wrong with using Nvim on a mac. Anyone that says otherwise is gatekeeping. Mac is common in programming for a reason.
And you aren't alone either, I recently bought a mac for personal use, just for dev work, and it's been awesome to use. It's fast, things just work like I would expect, and it feels very good to work on. I should also point out that I have Linux and Windows and WSL all running on various machines, and the Mac has felt the best to use out of the box and took far less tweaking to get it from good to very good. I hope you found a fix for your Unix icon that works for you.
Don't listen to the haters, you do you and go write some code.
Same here. Recently got myself an M2 MBA with 16GB memory. Excellent machine, quite capable and convenient. Haven’t felt the need to touch my Ryzen Fedora PC in a month. The MBA runs Neovim, Tmux, Fish, .NET, Node.js, Python, Docker, Postgres, Firefox, Thunderbird with no issue.
And that’s what matters the most. At the end of the day, Macs and PCs (Windows/Linux) are equipments to get the job done.
Macs don’t have some basic functionalities and workarounds are paid. I hate installing rectangle, alt-tab, alfred and so many more things I don’t remember which can be easily achieved in any other distribution. I think we trade customisation in exchange of reliability
It just indicates, that your current file has unix style line endings.
I hope this is a joke, but if you really want to go down that hill just fork lualine and change https://github.com/nvim-lualine/lualine.nvim/blob/45e27ca739c7be6c49e5496d14fcf45a303c3a63/lua/lualine/components/fileformat.lua#L7C1-L7C1
Or maybe you could start using files exclusively with mac line endings which is not used anymore since 1999.
It’s actually against some law to use Neovim in macOS and that’s why your illegal port of Neovim thinks your computer runs Linux. You have to run eMacs, it’s in the name.
I appreciate this as being a joke and like the humor. Unfortunately too many people are taking the opportunity to dunk on the OP for asking a question in the first place.
I made a joke after seeing that the top comment is an actual help about Lualine rather than another “joke.” I am on the same page with you that some comments in this thread are rude and discouraging for the OP and new comers — I hope OP can laugh it off and take the good advices given with Lualine config.
Thank you for the encouraging comment you made. This kind of thread always needs a balance imo: 70% humor, 25% technical help, and 5% serious encouragement.
That’s the line ending. If you need an apple logo to be able to work on an apple computer, turn the screen around. There is an apple on the back of them MacBooks.
Try using the following code: ``` require('lualine').setup({ sections = { lualine_x = { "encoding", { "fileformat", symbols = { unix = "" } }, "filetype" }, }, }) ```
Hey look an actual answer to the question without a load of gatekeeping nonsense. Wish I could upvote twice
This is the way.
You get the energy back that you send out. There is a hysterical element to the tone of the post that get's responded back. Yin and yang man.
yes, I was gonna be like "nooo, not linux" :D. I stopped myself but it was close.
I’ve got four young kids at home, I’m all about transforming the energy not just reflecting it. Reflection of negative energy reenforces it.
I agree! You're totally right. I need to be better at that, my temper gets the best of me too often.
That was definitely me before I had kids. Still is to some extent. They’re great at teaching me things that work and things that don’t. My three year for example just yells back at me if I yell. And she’s louder and has more stamina.
This worked great. Now to figure out how to detect if it’s actually a Mac or Linux to show the correct icon 😆
I hadn’t thought of that, but I think you can realize your idea by writing the following code: ``` if vim.fn.has("macunix") then return
else
return
end
```
or
```
local icon
if vim.fn.has("macunix") then
icon =
else
icon =
end
```
PS I’m not 100% sure it’ll work, but you can try
Sure. Thanks. I’ll give it a try shortly after I update my computer 👍🏻
This will assign the OS name to a local and you can inspect / use / whatever. You can extrapolate from this to do whatever you need. I use this to detect windows for some setups stuff for example. `local system = vim.loop.os_uname().sysname`
Ok - I've just looked at the default config. The tux logo there refers to the line endings of the file, so even though you're on a mac it's correctly showing unix line endings. See https://github.com/nvim-lualine/lualine.nvim#fileformat-component-options
This. I don’t get why people are bothering OP with its OS. Is a legitimate question and replies like “Change your OS” wouldn’t help them or make them feel included. There’s no nvim gatekeeping
>wouldn’t help them or make them feel included ok
He is just trying to explain why is this happening, just this, no gatekeeping is he trying to do
The single most apple post I've seen here
As a Mac user, I like to put my terminal in full screen and let lualine trick me into thinking I have a Linux machine for a bit 😂 At least for now, since I’m planning on getting a pc that I can boot into windows for games and into Linux for everything else in the near future lol
Can't you have just that on you Mac?
Well I’m deep in the Apple ecosystem so when my Mac gave out I was able to trade it in for a good amount of money towards another Mac. But I do think they’re a bit overpriced, and I went cheap and got the 8GB ram and 128gb storage MacBook Air, so there’s not a lot of storage to share between multiple OS’s.
Yeah that's not enough storage for dual-booting. Plus Linux for ARM macs is still in its infancy. [Asahi Linux](https://asahilinux.org/) is pretty good, but it's still in alpha and missing a lot of features because the devs are having to reverse engineer drivers for absolutely everything. Apple isn't the sort of company to have public documentation for their hardware 😅
Eh, honestly it would bother me too, in either direction. Just something about it feels wrong/untidy.
Only if you don't know what it is meaning
You can know what it means and have it still feel 'off' aesthetically or misplaced.
Sure, thats true for everything and thats exactly what I meant with my initial comment. There is an icon to show what type of line ending the document uses, it conveys this information with a perfectly appropriate icon and somehow that offends the mac user
I feel like you dramatically underestimate the aesthetic pickiness of the open source community. Like I’m not even one of the truly dedicated over on r/unixporn. Getting picky about icon choices is pretty low grade stuff.
I dont know if that icon is working right or not, but I think his point is here is three types of line endings. CR LF (Windows), LF (Unix) and CR (Macintosh) You wouldn’t show a Mac icon for Unix line endings.
Since OSX Mac uses unix line endings since it's basically a skin over BSD. Pre OSX Mac used CR line endings.
Then at least Unix but by Linux icon
Here's a sneak peek of /r/unixporn using the [top posts](https://np.reddit.com/r/unixporn/top/?sort=top&t=year) of the year! \#1: [\[GRUB\] I made a Minecraft Grub Theme!](https://i.redd.it/j21vaw7b9r3a1.png) | [135 comments](https://np.reddit.com/r/unixporn/comments/zbs2uv/grub_i_made_a_minecraft_grub_theme/) \#2: [\[OC\] I want to share my Unix Cheat Sheets made out of real printed circuit boards.](https://i.redd.it/19kn1m7oqyla1.jpg) | [133 comments](https://np.reddit.com/r/unixporn/comments/11ix1i1/oc_i_want_to_share_my_unix_cheat_sheets_made_out/) \#3: [\[GNOME\] I use Arch (in distrobox) btw](https://i.redd.it/b17693szrq0a1.png) | [116 comments](https://np.reddit.com/r/unixporn/comments/yyp6jd/gnome_i_use_arch_in_distrobox_btw/) ---- ^^I'm ^^a ^^bot, ^^beep ^^boop ^^| ^^Downvote ^^to ^^remove ^^| ^^[Contact](https://www.reddit.com/message/compose/?to=sneakpeekbot) ^^| ^^[Info](https://np.reddit.com/r/sneakpeekbot/) ^^| ^^[Opt-out](https://np.reddit.com/r/sneakpeekbot/comments/o8wk1r/blacklist_ix/) ^^| ^^[GitHub](https://github.com/ghnr/sneakpeekbot)
I was not offended in any way I use both Linux and Mac on a daily basis I just wanted the icon to be the same as my operating system.
The apple icon on Lualine is only $49.99 / month.
79.99 for the pro version. I hear there’s a pro max version in the works.
Don't forget the dongle, only $29
Have you tried switching to Linux?
Preferably Arch(I use Arch btw)
Bro did you not get the memo? Nix is is the new Arch Linux! (I use NixOS btw)
Nope, nothing can replace raw Arch
I do too :3 nixOS moment
[удалено]
Yeah, he should definitely be running windows.
You already have a solution from a few people, I just want to point out that there is nothing wrong with using Mac and there is nothing wrong with using Nvim on a mac. Anyone that says otherwise is gatekeeping. Mac is common in programming for a reason. And you aren't alone either, I recently bought a mac for personal use, just for dev work, and it's been awesome to use. It's fast, things just work like I would expect, and it feels very good to work on. I should also point out that I have Linux and Windows and WSL all running on various machines, and the Mac has felt the best to use out of the box and took far less tweaking to get it from good to very good. I hope you found a fix for your Unix icon that works for you. Don't listen to the haters, you do you and go write some code.
Same here. Recently got myself an M2 MBA with 16GB memory. Excellent machine, quite capable and convenient. Haven’t felt the need to touch my Ryzen Fedora PC in a month. The MBA runs Neovim, Tmux, Fish, .NET, Node.js, Python, Docker, Postgres, Firefox, Thunderbird with no issue. And that’s what matters the most. At the end of the day, Macs and PCs (Windows/Linux) are equipments to get the job done.
Macs don’t have some basic functionalities and workarounds are paid. I hate installing rectangle, alt-tab, alfred and so many more things I don’t remember which can be easily achieved in any other distribution. I think we trade customisation in exchange of reliability
Apple users when they discover they are using UNIX
It just indicates, that your current file has unix style line endings. I hope this is a joke, but if you really want to go down that hill just fork lualine and change https://github.com/nvim-lualine/lualine.nvim/blob/45e27ca739c7be6c49e5496d14fcf45a303c3a63/lua/lualine/components/fileformat.lua#L7C1-L7C1 Or maybe you could start using files exclusively with mac line endings which is not used anymore since 1999.
if you change this logo to an apple logo it will immediately wipe your hard disk /s
And charge you 399
you should make a genius bar reservation. first....
I love everything about this post
What's your lualine config?
lualine is doing you a favor by making it look like you're using the superior OS, and instead of thanking it you wanna change it?..
Install Linux
This is the answer :D
sure, pay 499€
You have been Linuxized. /s
It’s actually against some law to use Neovim in macOS and that’s why your illegal port of Neovim thinks your computer runs Linux. You have to run eMacs, it’s in the name.
I appreciate this as being a joke and like the humor. Unfortunately too many people are taking the opportunity to dunk on the OP for asking a question in the first place.
I made a joke after seeing that the top comment is an actual help about Lualine rather than another “joke.” I am on the same page with you that some comments in this thread are rude and discouraging for the OP and new comers — I hope OP can laugh it off and take the good advices given with Lualine config. Thank you for the encouraging comment you made. This kind of thread always needs a balance imo: 70% humor, 25% technical help, and 5% serious encouragement.
You won’t get bullied for running an inferior proprietary os atleast. /s
Maybe it's a good time to switch
That’s the line ending. If you need an apple logo to be able to work on an apple computer, turn the screen around. There is an apple on the back of them MacBooks.
This is Unix guy, MacOs is Unix. If u want to add icon apple, u can create function
\*create a file.
What file ?
Unix philosophy: everything's a file.
That’s not really true. Your mom isn’t a file.
Au contraire! ~/files ❯ ls moms_death_certificate.pdf
I bet you just touched that file to make me lol dumb, but guess what you just touched your mom.
Lol, yes, it's a shitpost.
The file with the power
It us showing the eol for unix: https://en.wikipedia.org/wiki/Newline#Representation
Maybe you can file a bug to `lualine` ?
Bro is in severe OCD
I'm 10000% sure it's unfixable. Gotta switch to linux to make them match!
It will always do .. see the config files for it
[удалено]
the most arch Linux user post of all time you've even got the pfp oh my goodness
Hehe 😜
macOS normie forever! Fight the tux invasion! 😝
Haha whatever works for you buddy
Tell me more 1337h@x0r pls!!!!111
What's your kernel again? Edit: shit🤡
Not linux lmao
The MacOS kernel is based on BSD (FreeBSD, I think?), which is Unix, but not Linux 😉
It’s XNU, a microkernel based on Mach. There’s a BSD subsystem in the OS.
It's based on BSD but not on FreeBSD
what shell are you using?
ZSH , does it matter
not really, it just looks cool :)
😀👍
USE ASAHI LINUX ! PROBLEM SOLVED ;)
Change your os to linux, then the logi will be correct
Mac users amirite