enable trash on linux

This commit is contained in:
Noah Masur 2023-03-05 23:04:06 -05:00
parent 18505d4cbb
commit 763f0bbdda

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { { config, pkgs, lib, ... }: {
users.users.${config.user}.shell = pkgs.fish; users.users.${config.user}.shell = pkgs.fish;
programs.fish.enable = programs.fish.enable =
@ -11,7 +11,10 @@
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAliases = { ls = "exa"; }; shellAliases = {
ls = "exa";
trash = lib.mkIf pkgs.stdenv.isLinux "${pkgs.trash-cli}/bin/trash-put";
};
functions = { functions = {
commandline-git-commits = { commandline-git-commits = {
description = "Insert commit into commandline"; description = "Insert commit into commandline";
@ -90,6 +93,7 @@
sc = "systemctl"; sc = "systemctl";
scs = "systemctl status"; scs = "systemctl status";
m = "make"; m = "make";
t = "trash";
# Vim (overwritten by Neovim) # Vim (overwritten by Neovim)
v = "vim"; v = "vim";