home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

shell.nix (689B)


      1 { config, ... }: {
      2   aliases = {
      3     mkdir = ''mkdir --parents --verbose'';
      4     rm = ''rm --interactive'';
      5     cp = ''cp --interactive'';
      6     mv = ''mv --interactive'';
      7     gcd = ''cd (git root)'';
      8     # ls = ''exa'';
      9     ll = ''ls -l'';
     10     la = ''ls -a'';
     11     l = ''ls -lah'';
     12     # t = ''exa --tree --level=2'';
     13     wget = ''wget -c'';
     14     map = ''xargs -n1'';
     15     k = ''kubectl'';
     16   };
     17 
     18   env = ''
     19     export PATH=$HOME/bin:$PATH
     20     export LESSHISTFILE="${config.xdg.dataHome}/less_history"
     21     export WEBKIT_DISABLE_COMPOSITING_MODE=1;
     22     export PATH=$HOME/bin:$PATH
     23     if [ -d $HOME/.krew/bin ]; then
     24       export PATH=$HOME/.krew/bin:$PATH
     25     fi
     26   '';
     27 
     28   historySize = 10000;
     29 }