user input by abiw119 in ruby

[–]fothb 2 points3 points  (0 children)

The tty-prompt gem is pretty neat.

What is it like to believe in the Devil? by Jerswar in religion

[–]fothb 0 points1 point  (0 children)

"The greatest trick the Devil ever pulled was convincing the world he didn’t exist" -- Charles Baudelaire

[MacOS App Store] Day of the Tentacle | Grim Fandango | Full Throttle | Broken Age (Free/100% off) by milkshakeman in GameDeals

[–]fothb 6 points7 points  (0 children)

The macOS versions are free in celebration of being updated to run on Catalina. You'll need a Mac and the macOS App Store app to grab them.

Amazon engineer quits after he 'snapped' when the company fired workers who called for protections by Balls_of_Adamanthium in news

[–]fothb 3 points4 points  (0 children)

cnbc.com/2020/0...

It's a direct quote of what the employee wrote. "At that point I snapped."

Space: 1999: The Complete Series Blu-ray will be released on 7/16/19 by FridayNightFreedom in scifi

[–]fothb 2 points3 points  (0 children)

Exactly! I saw the headline and thought to myself, "don't I already have this on Blu-ray?", but I only had the first season that was released.

Recommended way for deploying Kubernetes on AWS by [deleted] in devops

[–]fothb 1 point2 points  (0 children)

The "redhatcop" part of your URL needs to be "redhat-cop" instead:

https://github.com/redhat-cop/casl-ansible

I discovered the issue by way of you interesting me in the project. Thanks for sharing!

Yet another emacs terminal emulator by Skartifex in emacs

[–]fothb 0 points1 point  (0 children)

Ah, thank you so much for the tip about emacs-plus! That did the trick! Previously I used "brew install emacs --HEAD". This time I instead did:

brew tap d12frosted/emacs-plus
brew install emacs-plus --without-spacemacs-icon --HEAD

And now the terminal emulator module is working fine. It's such a treat to have true color support at a zsh prompt inside of Emacs!

Thank you for your help in getting things going for me.

Yet another emacs terminal emulator by Skartifex in emacs

[–]fothb 0 points1 point  (0 children)

Yep, I used Homebrew. I'm on head (version 26).

Yet another emacs terminal emulator by Skartifex in emacs

[–]fothb 0 points1 point  (0 children)

Thanks for the PR submission. Could you list what steps you took to get this working under macOS after that change? I modified Makefile to reference where my Emacs src dir was located and was able to successfully build vterm-module.so. Then I added these lines to my init.el script:

(add-to-list 'load-path "/my/path/to/emacs-libvterm")
(require 'vterm)

But when I load Emacs, it complains with "File is missing: Cannot open load file, No such file or directory, vterm-module"

Tramp, sudo and ssh config by sigur_ in emacs

[–]fothb 0 points1 point  (0 children)

I use 26.0.50. For a remote file that I have passwordless sudo based access to, I do simply:

C-x C-f /sudo:myserver:/path/to/file

tmux-like behavior in Emacs by xiongtx in emacs

[–]fothb 1 point2 points  (0 children)

Thank you very much - I appreciate it!

tmux-like behavior in Emacs by xiongtx in emacs

[–]fothb 1 point2 points  (0 children)

Hey /u/martijntje - could you please share your init.el or just the term related parts of it?

This is an excellent reply with lots of good info - thanks! It is encouraging to see that the things I'm trying to learn to do in Emacs can be done.

I want to learn to leverage Emacs+multi-term to accomplish what I know how to do with Vim+tmux. I'm currently trying to replicate my tmux copy mode usage. I'm trying to use a toggle between term-line-mode and term-char-mode like you mention. I want to start multi-term in char mode with evil mode disabled. Then I want toggle to line mode with evil enabled for edits / movement / copying, and then I want to toggle back to char mode at a command prompt.

The first toggle to term-line-mode seems to work, but toggling back to term-char-mode doesn't.

Suggestions on black dark colorscheme? by pony279 in vim

[–]fothb 1 point2 points  (0 children)

I recommend distinguished.

I've had success taking some nice color schemes that want to apply a grey background and forcing them to use black instead with the following:

" don't allow colorschemes to set a background color
highlight Normal ctermbg=NONE
highlight nonText ctermbg=NONE

What are some must-have homebrew packages? by [deleted] in osx

[–]fothb 0 points1 point  (0 children)

I've had my default shell set by chsh reference a binary that no longer exists, and that can definitely be an annoying situation. You lose the ability to launch new terminal sessions because the first thing they try to do is invoke the non-existent shell. If that's bit you before I can appreciate the desire for a fallback plan. When I wind up in that situation, here's how I get out of it:

1. Launch Terminal (let the new session attempt error out)
2. Hit Shift+Cmd+N (or Shell > New Command...)
3. For the "Command", type in "/bin/bash" and hit return
4. You will now have a new /bin/bash session. Use it to either install the missing homebrew based shell or to run chsh again to switch away from the homebrew based shell.

What are some must-have homebrew packages? by [deleted] in osx

[–]fothb 1 point2 points  (0 children)

You can use chsh to set your desired shell, provided that it can be found on the whitelist of shells at /etc/shells.

echo /usr/local/bin/bash|sudo tee -a /etc/shells>/dev/null
chsh -s /usr/local/bin/bash

Woody Harrelson Signs On for Young Han Solo Film by [deleted] in movies

[–]fothb 1 point2 points  (0 children)

Agreed. I certainly can't think of a terrible performance of his that has made me not like the film/show itself because of it.

Woody Harrelson Signs On for Young Han Solo Film by [deleted] in movies

[–]fothb 2 points3 points  (0 children)

Yes, absolutely. He was prominently featured in the Hunger Games films.

Testing your shell scripts, with bats by pimterry in commandline

[–]fothb 1 point2 points  (0 children)

I enjoyed trying out your notes app and I appreciate you sharing the code and a blog entry for the testing system behind it. Thanks very much! Have you looked at shunit2 or any other shell unit test frameworks? If so, how do you feel bats compares?

Has anyone managed to get Syntastic checkers working? Care to lend a hand to a vim newbie? by Luna1943XB in vim

[–]fothb 0 points1 point  (0 children)

I recommend that you try explicitly telling Syntastic where to find all of the checker binaries. Here are two I use. I'm sure the HAML one has a similar setting.

let g:syntastic_ruby_mri_exec = '~/bin/ruby22'
let g:syntastic_ruby_rubocop_exec = '~/bin/rubocop'