AstonJ
Just noticed mine has gotten quite unwieldy and should probably be split into multiple files - but curious how big everyone else’s is!
(Mine’s 1304 lines!
)
Trending in Dev Env & Tools
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
arcanemachine
About 130 of those lines are mostly default Ubuntu stuff.
I honestly thought it would be bigger than that…
Dude, you have a problem.
BartOtten
Your rc is larger than my emacs config (without comments). Curious what is in it.
sodapopcan
Mine is 285 including comments and a bit of junk I should delete. It’s config, very few aliases, and otherwise functions for my prompt as I don’t use ohmyzsh or any such thing. Also very curious why yours is so big
AstonJ
My rc is definitely in need of cleaning up, and I definitely have some unused (and commented out functions in it) but to give you an idea why it’s so big:
For example I have a lot of functions like this - which are longer than they might otherwise be because of the number of servers I administer:
Quite a large portion of the file is actually made up of push functions, and while I have some general functions which can handle smaller more basic sites, with commands like:
For bigger sites the push functions are more involved, as they need to: turn the site off (BRB page) build assets, upload files/assets, run migrations, check permissions, run seeds if given the appropriate flag, turn site back on, etc. So these get a function each (which I could call from the main
pushfunction).And then I have some random functions like:
I’m sure I could improve a lot of it (eg: just use numbers instead of words for servers) but it’s not a huge priority for me right now…
nikfp
I’m also surprised at the size of your file, mine’s about 145 lines and includes some functions for:
I thought it was overgrowing tbh. I guess not?
NobbZ
I’m surprised it’s this big. Though indeed, I can explain about any of those lines and why it is there.
But can’t copy the full file, as I’m on mobile.
Also that’s just one computer, the other is currently offline.
dimitrije
Hi @AstonJ , I can suggest trying out
.ssh/confighttps://man.freebsd.org/cgi/man.cgi?query=ssh_config&sektion=5&apropos=0&manpath=FreeBSD+14.3-RELEASE+and+PortsWith combination with
rsynchttps://man.freebsd.org/cgi/man.cgi?query=rsync&apropos=0&sektion=0&manpath=FreeBSD+14.3-RELEASE+and+Ports&arch=default&format=htmlI do also administer few server on daily basis, and with
.ssh/configandrsyncI’ve minimized a lot of typing and erros.Just an idea as I was in similar situation.
AstonJ
Thanks Dimitrije
How are you using
.ssh/config? (How do you think it could help me?)I’ve used
)
rsyncin the past (eg for Jekyll sites) but ended up preferringscp(I can’t remember exactly why now thojswanner
Aston, you didn’t ask about fish, and its configuration is fairly different than bash/zsh, but here you go…
Almost none of those lines were added to those files by me (maybe ~10 lines I actually wrote), most of it came from me using fish functions from the command line and it writing to those files.
Assuming you have environment variables you are exporting from your rc file, fish has a dedicated file for those, and most of mine are for configuring fish itself. And again, I didn’t write any of those lines, most came from running
fish_config, the rest from setting variables from the command line:AstonJ
Sorry Jacob - every shell user is welcome to join in
(I’ve edited the title and tags)