mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 04:12:18 +00:00
add fish aliases/abbrs
This commit is contained in:
parent
668521f9ed
commit
51b6f81eec
1 changed files with 6 additions and 9 deletions
|
@ -1,17 +1,14 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
hasPackage = pname: lib.any (p: p ? pname && p.name == pname) config.home.packages;
|
||||
hasExa = hasPackage "exa";
|
||||
in
|
||||
{
|
||||
{ pkgs, lib, config, ... }: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
shellAbbrs = rec {
|
||||
ccat = "egrep -v '^\s*(#|$)'";
|
||||
jqless = "jq -C | less -r";
|
||||
ls = mkIf hasExa "exa";
|
||||
k = "kubectl";
|
||||
n = "nix";
|
||||
scppass = "scp -o PubkeyAuthentication=no";
|
||||
sshpass = "ssh -o PubkeyAuthentication=no";
|
||||
tf = "terraform";
|
||||
tfyolo = "terraform apply -auto-approve";
|
||||
vi = "vim";
|
||||
|
@ -19,7 +16,7 @@ in
|
|||
};
|
||||
|
||||
shellAliases = {
|
||||
|
||||
ssh = "TERM=xterm ssh";
|
||||
};
|
||||
|
||||
functions = {
|
||||
|
|
Loading…
Reference in a new issue