some zsh sugar
This commit is contained in:
parent
6874f88994
commit
661d4dffe9
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue