News for hackers. Stuff that matters.
Re:Some Useful Bash Aliases – Chuck Carroll by cassepipe on Monday December 25, 2023 @07:02PM (#38767559)
I have aliases for zsh to quickly edit all my configs, it's pretty neat :

     declare -x -A configs
    configs=(
        gdb                "$XDG_CONFIG_HOME/gdb/gdbinit"
        git                "$XDG_CONFIG_HOME/git/config"
        vim                "$HOME/.vimrc"
        wezterm            "$XDG_CONFIG_HOME/wezterm"
        zsh                "$HOME/.zshrc"
    )
    for key value in ${(kv)configs}; do
        if [[ $key == "zsh" ]]
        then
            alias ${key}config="$EDITOR $value && source $value && echo 
    $configs[zsh] has been sourced"
         else
            alias ${key}config="$EDITOR $value"
        fi
    done
Just use zshconfig now if you need to add a new config file to the array and get a new alias
Re:Some Useful Bash Aliases – Chuck Carroll by yanzhang0219 on Tuesday December 26, 2023 @12:34AM (#38769162)
fzf is the final solution.