Hot answers tagged

3

There's a pure Git solution you can use in your global .gitconfig - I use an include.path config for personal stuff by default: # .gitconfig # default user email and key [include] path = .gitconfig-personal and that file contains name, personal email (which is used for SSH and identifying my GitHub account), and GPG key ID: # .gitconfig-personal [...


3

If you don't care about whether Emacs is a "fully-functional" terminal or not and you just want it to work without making you press enter, then run the psql command \pset pager off. This will make psql skip running a pager program and just dump all the output at once. You can then scroll through the output using the Emacs scrollbar or scrolling ...


2

I created this minor mode that adds a hook to Magit when it needs credentials and gets user input for ssh-ident. The code still needs to be improved though. emacs-ssh-ident


2

Using the temporary test AWS account, I have been able to access that file system via Tramp. Necessary configs are If you use another AWS profile but default, you shall tell it to Emacs. Add to your ~/.emacs (setenv "AWS_PROFILE" "my_profile") Add your private key file to ~/.ssh/config Host i-* mi-* ProxyCommand sh -c "aws ssm start-session --target ...


2

Download and install iftop package, run a M-x term, then type something as: $ iftop -i eth0 -f 'dst host 192.168.1.3' As for: -i local interface -f filter code, as in pcap-filter man page, for destination host in the example. There will be 3 speed rates in inferior right part of the screen, meaning that for 2, 10 and 40 seconds respectively.


2

The command /usr/bin/ssh -o ControlPath=%C 0.0.0.1 is used to check, whether your local ssh command accepts the ControlPath option. 0.0.0.1 is a non-existing address; ssh shall return immediately with an error. In more recent Tramp versions, the blocking is avoided by using the command ssh -o ConnectTimeout=1 -o ControlPath=%C 0.0.0.1. I recommend to upgrade ...


2

To open a file when starting a new instance of Emacs you can generally do: emacs "/ssh:server:file" as described in man emacs: SYNOPSIS emacs [ command-line switches ] [ files ... ] If you use Emacs daemon and want to open a file within an existing instance of Emacs you can do emacsclient "/ssh:server:file" as well but it will ...


1

Short solution: add all PATH-related settings to ~/.profile instead of ~/.bashrc, and make sure the former is sh-compatible.


1

Emacs will start "in GUI mode" automatically when possible. There are basically 2 conditions that need to be satisfied: You must use an Emacs built with GUI support. There must be an Xserver it can connect to, which is indicated by the usual $DISPLAY environment variable. So make sure your Emacs was built with GUI support, and make sure you launch it from ...


1

This is not possible as of today. Patches welcome!


1

In my case, the cause was having started Emacs as a tab of GNU Screen and connecting to it by emacsclient. After restarting Emacs from within the X2Go session, the bidirectional clipboard started working again.


1

I've never heard of CyberArk Privileged Session Manager, but from your description adding it to tramp-methods shouldn't be too hard. The simplest way is probably to add an entry with (add-to-list 'tramp-methods ("psm" (tramp-login-program "ssh") (tramp-login-args (("-l" "username") ...


1

If you mean to use this config file in Tramp instead of ~/.ssh/config, you need to tell Tramp so in tramp-methods. Something like (progn (require 'tramp-sh) (let ((args (assoc 'tramp-login-args (assoc "ssh" tramp-methods)))) (setcar (cdr args) (append '(("-F" "/home/alamd/ПакетыДоступа/root_91_211_249_142/config")) (cadr ...


1

What can I do about this issue? I'm using psql, inside a ssh tunnel to ubuntu, inside a M-x shell, inside a emacsclient -nw In short, "don't do that". Emacs has excellent comint-based support for psql via M-x sql-postgres, and the sql-interactive-mode buffer created by that can interact with sql-mode buffers so that you can write queries in the ...


Only top voted, non community-wiki answers of a minimum length are eligible