some zsh sugar

This commit is contained in:
Grigory Shipunov 2023-01-22 02:18:01 +01:00
parent 6874f88994
commit 661d4dffe9
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
2 changed files with 11 additions and 0 deletions

View file

@ -80,6 +80,8 @@
export HISTFILE="$HOME/.zsh_history" export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=10000000 export HISTSIZE=10000000
export SAVEHIST=10000000 export SAVEHIST=10000000
# allow comments
setopt interactivecomments
''; '';
promptInit = '' promptInit = ''
source ${pkgs.liquidprompt}/share/zsh/plugins/liquidprompt/liquidprompt source ${pkgs.liquidprompt}/share/zsh/plugins/liquidprompt/liquidprompt
@ -97,6 +99,11 @@
LP_SSH_COLORS=1 LP_SSH_COLORS=1
''; '';
}; };
# integrate fzf into shell
programs.fzf = {
keybindings = true;
fuzzyCompletion = true;
};
programs.iftop.enable = true; programs.iftop.enable = true;
programs.mosh.enable = true; programs.mosh.enable = true;

View file

@ -132,10 +132,14 @@
services.udisks2.enable = true; services.udisks2.enable = true;
environment.shellAliases = { environment.shellAliases = {
# mounting shit
mnt = "udisksctl mount -b"; mnt = "udisksctl mount -b";
umnt = "udisksctl unmount -b"; umnt = "udisksctl unmount -b";
unlock = "udisksctl unlock -b"; unlock = "udisksctl unlock -b";
lock = "udisksctl lock -b"; lock = "udisksctl lock -b";
# easier navigation
pwc = "pwd|wl-copy";
cdp = "cd $(wl-paste)";
}; };
qt = { qt = {