feat: add aliases
This commit is contained in:
1
aliases/btconnect.sh
Executable file
1
aliases/btconnect.sh
Executable file
@@ -0,0 +1 @@
|
||||
bluetoothctl devices | fzf | awk '{print $2}' | xargs -r bluetoothctl connect
|
||||
@@ -1,13 +1,28 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
scripts = builtins.attrNames (builtins.readDir ../../../aliases);
|
||||
aliases = builtins.concatStringsSep "\n" (
|
||||
map (
|
||||
name:
|
||||
let
|
||||
aliasName = builtins.replaceStrings [ ".sh" ] [ "" ] name;
|
||||
in
|
||||
"alias ${aliasName}='~/dotfiles/aliases/${name}'"
|
||||
) scripts
|
||||
);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
history.size = 1000;
|
||||
envExtra = ''
|
||||
envExtra =
|
||||
''
|
||||
export PATH="$PATH:$HOME/.rokit/bin"
|
||||
'';
|
||||
''
|
||||
+ "\n"
|
||||
+ aliases;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
|
||||
Reference in New Issue
Block a user