Post AMzrLo5DGHtSIScdN2 by cipherdragon@mstdn.starnix.network
(DIR) More posts by cipherdragon@mstdn.starnix.network
(DIR) Post #AMyg3qGZ74JbCXCfh2 by 2T2@mstdn.starnix.network
2022-08-28T06:02:58Z
0 likes, 0 repeats
Ma super-useful cronjobs, bash_histories will never be bigger than ±1kb 💡 How you guys sort out your bash history? Previously i used to edit manually was boring
(DIR) Post #AMyhLv1gFpWb89QOJ6 by 2T2@mstdn.starnix.network
2022-08-28T06:17:26Z
0 likes, 1 repeats
Also would be fun if i can make a cronjob to change my whole theming from light to dark after certain hour 9 pm or 10 pm :chad2:
(DIR) Post #AMyhNdb81UrZempCHA by splitshockvirus@mstdn.starnix.network
2022-08-28T06:17:44Z
1 likes, 0 repeats
@2T2 I don't have bash history enabled on my computer :cirno_cry: <- clueless
(DIR) Post #AMyhQ9O4nl7CpTuyae by splitshockvirus@mstdn.starnix.network
2022-08-28T06:18:11Z
0 likes, 0 repeats
@2T2 THAT'S A GOOD IDEA
(DIR) Post #AMyhWafwG3TxCQLNKK by 2T2@mstdn.starnix.network
2022-08-28T06:19:21Z
0 likes, 0 repeats
@splitshockvirus how you disable it? 🤔
(DIR) Post #AMyhbwGZPYSTbt1nsW by iska@mk.starnix.network
2022-08-28T06:20:20.588Z
0 likes, 0 repeats
@2T2@mstdn.starnix.network I have an unlimited bash_history.
(DIR) Post #AMyhdIrKtdmLyEsLqa by splitshockvirus@mstdn.starnix.network
2022-08-28T06:20:34Z
0 likes, 0 repeats
@2T2 It was never enabled :cirno_cry: How do you enable it? :cirno_cry:
(DIR) Post #AMyhgl1gd3DICJMdgu by iska@mk.starnix.network
2022-08-28T06:21:12.867Z
0 likes, 0 repeats
@2T2@mstdn.starnix.network @splitshockvirus@mstdn.starnix.network HISTFILESIZE=0
(DIR) Post #AMyhkRL3liBSIQBKXg by 2T2@mstdn.starnix.network
2022-08-28T06:21:51Z
0 likes, 0 repeats
@splitshockvirus haha it's hidden text file i use ctr h to see hidden files for sure you must have one have
(DIR) Post #AMyhry4CU7BHpMsxbE by 2T2@mstdn.starnix.network
2022-08-28T06:23:14Z
0 likes, 0 repeats
@iska unlimited that's default at least for the user shell
(DIR) Post #AMyi20089DVUirlUbw by slink@tilde.zone
2022-08-28T06:25:01Z
0 likes, 0 repeats
@2T2 oo yes. I definitely want to change my theme from dark to slightly darker every night.
(DIR) Post #AMyiHPfH0srUf1MKpM by iska@mk.starnix.network
2022-08-28T06:27:50.034Z
0 likes, 0 repeats
@2T2@mstdn.starnix.network nope, it's 500 lines.
(DIR) Post #AMyiW95OvzFZaRbaoC by 2T2@mstdn.starnix.network
2022-08-28T06:30:29Z
0 likes, 0 repeats
@iska so why you wanna have a 5 gig history? 😄
(DIR) Post #AMyiZafapplG0NB0IC by 2T2@mstdn.starnix.network
2022-08-28T06:31:07Z
0 likes, 0 repeats
@slink yeah that would be a thing
(DIR) Post #AMyp8DuA4ALjGEt7fE by 10leej@mstdn.starnix.network
2022-08-28T07:44:35Z
0 likes, 0 repeats
@2T2 I just delete the history fileevery 2 hours and don't sort it
(DIR) Post #AMyrAlANZTgSuJoLbM by 2T2@mstdn.starnix.network
2022-08-28T08:07:27Z
0 likes, 0 repeats
@10leej yeah but you may need couple of often used commands to be there in case you forget about them. For example to download a yt vid i have my yt-dlp command saved along othersfor example i use thisyt-dlp -f 'bv[height=480][ext=mp4]+ba[ext=m4a]' --merge-output-format mp4 https://www.youtube.com/watch?v= -o '%(id)s.mp4'need just to insert vid id after the = sign
(DIR) Post #AMyrDui8XdYJNU6YnA by dem32@mstdn.starnix.network
2022-08-28T08:08:02Z
0 likes, 0 repeats
@2T2 @10leej you have a shell conifg kek
(DIR) Post #AMyuvQR8lFAq5Xauv2 by 10leej@mstdn.starnix.network
2022-08-28T08:49:31Z
0 likes, 0 repeats
@2T2 I don't really live in the commandline as much as people assume I would. So really the more complex commands I typically alias or document in my notes.
(DIR) Post #AMyvVhGxdwLcjF82nA by 2T2@mstdn.starnix.network
2022-08-28T08:56:01Z
0 likes, 0 repeats
@10leej sure depending on how your workflow suits your demands. The shortest way is that you get used to. I started from the user bash history and i though why i can't just make it read only and when i need to add some useful command i'll just edit it. And from there i said i need my root bash history to have only what i need and was harder as that file even if you make it read only by the root it seems to still can be written so made a cronjob that hourly cleans things up
(DIR) Post #AMzrLo5DGHtSIScdN2 by cipherdragon@mstdn.starnix.network
2022-08-28T19:44:10Z
0 likes, 0 repeats
@splitshockvirus @2T2 NO. NEVER USE LIGHT THEME. Let it be 12 noon or midnight, don't use light theme. Even if you live next to the sun, don't use light theme.