Unanswered Questions
3,035 questions with no upvoted or accepted answers
18
votes
2
answers
4k
views
zsh can't input to terminal when piping stdin and stdout with variable command that has tty output
System info:
macOS Sierra 10.12.6
zsh 5.4.2 (x86_64-apple-darwin16.7.0)
GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
Scroll to the EXAMPLES at the bottom if you just want to dig in ...
9
votes
3
answers
3k
views
Open Firefox twice (with same profile)
There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel ...
7
votes
2
answers
1k
views
How can I paste a gif from the clipboard with xclip?
I'm trying to copy a gif into my clipboard such that I would be able to paste it into web applications (slack, github, etc.).
I have tried the following without any luck:
xclip -selection clipboard -...
7
votes
2
answers
6k
views
How to resize at the beginning/move a btrfs partition on the command line?
I have a Linux/Windows dual boot setup on my notebook, in which I used to keep most of the data on the Windows partition to be able to access it from both systems. Since I almost never use Windows I ...
7
votes
0
answers
679
views
How to abort/cancel a running command in initramfs?
When I invoke a long-running command, e.g. du, I don't see a way to abort/cancel it (Strg/Ctrl+c doesn't work), other shells/ttys aren't available. Am I completely doomed after having started a long ...
6
votes
0
answers
2k
views
Execute script on external keyboard connection
EDIT: This is NOT a duplicate because the linked question is about external USB drives, not keyboards. The suggested command udevadm info -a -n sdb does nothing in helping to find the corresponding ...
6
votes
0
answers
330
views
iotop. Don't remove exited processes/threads from the list
When run # iotop -ao, a process/thread disappears from the list if the process exits and the data on it is lost from the list. How to make it stay on the list?
6
votes
1
answer
1k
views
Synchronize IMAP to maildir folders - fast and complete solution with IDLE support?
This is likely to be borderline subjective, but I am searching for good alternatives for command line IMAP to maildir clients: Currently I am using offlineimap, but the docs are lacking, and support ...
6
votes
1
answer
2k
views
custom zsh autocomplete
I'd like to write a zsh completion for pytest.
Where do I Start? I'm using oh-my-zsh.
in .zshrc:
fpath=($HOME/.mycompletions $fpath)
autoload -U compinit && compinit -u
in $HOME/....
6
votes
0
answers
3k
views
Making zsh filename completion case-insensitive everywhere
I have the following line in my zshrc to make filename completions case-insensitive:
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
This works most of the time but I’ve noticed that if I ...
5
votes
0
answers
109
views
Subsequent "git clone" commands influencing each other?
I'm currently part of a migration from GitLab to Azure DevOps. As part of that I wrote a little bash script that iterates over the migrated git repos and for each performs a clone from both gitlab and ...
5
votes
1
answer
695
views
bash + how to avoiding duplicate entries in authorized_keys (ssh) in bash
Popular methods of adding an ssh public key to a remote host’s authorized_keys file include using the ssh-copy-id command, and using bash operators such as >> to append to the file.
An issue ...
5
votes
0
answers
599
views
Is job-control really meant to be supported in subshells and scripts?
Small premise
I use subshells quite often to perform operations that involve changing the Shell Execution Environment, so as not to affect the main shell. I do it often from an interactive shell, and ...
5
votes
0
answers
577
views
Launch Openbox actions through script or cli
I was wondering if it is possible to run openbox actions, like the ones that can be found on rc.xml like MoveResizeTo , through a console command so I can launch it from terminal or inside a bash ...
5
votes
1
answer
2k
views
Is there a way to set the QT icon theme, and other theme elements, from the command line?
I'm trying to automate the process of theming QT5 programs, in the absence of a DE like KDE, by writing a script that does it. I know that GTK has a bunch of config files that can specify all the ...