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, ... }:
|
{ 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;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
history.size = 1000;
|
history.size = 1000;
|
||||||
envExtra = ''
|
envExtra =
|
||||||
export PATH="$PATH:$HOME/.rokit/bin"
|
''
|
||||||
'';
|
export PATH="$PATH:$HOME/.rokit/bin"
|
||||||
|
''
|
||||||
|
+ "\n"
|
||||||
|
+ aliases;
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
|
|||||||
Reference in New Issue
Block a user