Skip to content

Instantly share code, notes, and snippets.

@kyrylo
Last active December 20, 2015 14:08
Show Gist options
  • Select an option

  • Save kyrylo/6143946 to your computer and use it in GitHub Desktop.

Select an option

Save kyrylo/6143946 to your computer and use it in GitHub Desktop.
How to enter plain text passwords in your terminal.

Zsh

# ~/.zshrc
setopt HIST_IGNORE_SPACE

Bash

# ~/.bashrc
HISTCONTROL=ignorespace

Result

Prepend a space character before your command.

% whoami
ninja
%  government enter -u mr-hacker -p elite
% # do your business... log out
% Bye.

Press Arrow_Up.

% ↑
% whoami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment