diff --git a/home/programs/shell/zsh.nix b/home/programs/shell/zsh.nix index 1680f0f..8459727 100644 --- a/home/programs/shell/zsh.nix +++ b/home/programs/shell/zsh.nix @@ -96,29 +96,6 @@ in { else "" } - function sesh-sessions() { - session=$(sesh list -t -c | fzf --height 70% --reverse) - [[ -z "$session" ]] && return - sesh connect $session - } - - function chatgptfolder(){ - echo "################################" - echo "### TREE ###" - echo "################################" - ${pkgs.eza}/bin/eza --tree -aF --icons never - echo -e "\n\n" - echo "##############################" - echo "### CONTENT ###" - echo "##############################" - find . -type f -not -path '*/.git/*' -print0 | while IFS= read -r -d "" file; do - echo -e "\n--- DEBUT: $file ---\n" - cat "$file" - echo -e "\n--- FIN: $file ---\n" - done - } - - function n4c() { category=''${1:-all} shift @@ -126,11 +103,6 @@ in { nix develop "github:nix4cyber/n4c#''${category}" ''${args} -c zsh } - zle -N sesh-sessions - bindkey -M emacs '\es' sesh-sessions - bindkey -M vicmd '\es' sesh-sessions - bindkey -M viins '\es' sesh-sessions - # search history based on what's typed in the prompt autoload -U history-search-end zle -N history-beginning-search-backward-end history-search-end