mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 13:05:37 +00:00
enable trash on linux
This commit is contained in:
parent
18505d4cbb
commit
763f0bbdda
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user