Added alias to search git log
This commit is contained in:
parent
4e55cab37e
commit
b45b28fbba
|
@ -48,7 +48,15 @@ in {
|
||||||
userEmail = cfg.userEmail;
|
userEmail = cfg.userEmail;
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
|
# Prettier log
|
||||||
lol = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
|
lol = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
|
||||||
|
# Find log and grab its hash
|
||||||
|
lof = ''
|
||||||
|
!${pkgs.git}/bin/git log --pretty=oneline \
|
||||||
|
| ${pkgs.fzf}/bin/fzf --scheme history \
|
||||||
|
| ${pkgs.gawk}/bin/awk '{print $1}'
|
||||||
|
'';
|
||||||
|
# Push up a new branch with the same as local
|
||||||
pushup = "push -u origin HEAD";
|
pushup = "push -u origin HEAD";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
namespace,
|
namespace,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
@ -27,10 +28,13 @@ in {
|
||||||
bindkey '^A' beginning-of-line
|
bindkey '^A' beginning-of-line
|
||||||
bindkey '^E' end-of-line
|
bindkey '^E' end-of-line
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
alias view="nvim -R $1"
|
|
||||||
alias l='ls -la'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
view = "${pkgs.neovim}/bin/nvim -R $1";
|
||||||
|
l = "ls -la";
|
||||||
|
};
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "zsh-syntax-highlighting";
|
name = "zsh-syntax-highlighting";
|
||||||
|
|
Loading…
Reference in a new issue