Skip to content
/ dotfiles Public

The... files. (ghostty, nvim, fish, yabai, lazygit...)

License

Notifications You must be signed in to change notification settings

956MB/dotfiles

Repository files navigation

ghostty

Screenshot

Aliases

fish/aliases.fish

General
alias v='nvim'                                                         # Open neovim
alias nv='nvim'                                                        # Open neovim (alternative)
alias z-='z -'                                                         # Navigate to previous directory using zoxide
alias cd..='z ..'                                                      # Go up one directory using zoxide
alias z..='z ..'                                                       # Go up one directory using zoxide (alternative)
alias ..='z ..'                                                        # Go up one directory using zoxide
alias ...='z ../..'                                                    # Go up two directories using zoxide
alias ....='z ../../..'                                                # Go up three directories using zoxide
alias yy='yazi'                                                        # Open yazi
alias fct='find . -maxdepth 1 -type d ! -name ".*" | wc -l'            # Count number of directories in the current directory (excluding hidden ones)
alias alias='myalias'                                                  # Display all fish shell aliases with their descriptions
alias l='eza --group-directories-first'                                # List with icons, directories first
alias ls='eza --group-directories-first'                               # List with icons, directories first
alias ll='eza -l --group-directories-first'                            # Long format with icons
alias la='eza -la --group-directories-first'                           # List all (including hidden) with icons
alias lt='eza --tree --icons'                                          # Tree view with icons
alias l.='eza -a | grep -E "^\."'                                      # Show only hidden files
alias lsa='eza -la --group-directories-first'                          # List all with icons (including hidden)
alias lsr='eza -R --icons'                                             # List recursively
alias lsf='eza -1 | wc -l'                                             # Count number of files
alias lss='eza -la --group-directories-first --sort=size'              # Sort by size
alias cls='clear'                                                      # Clear the terminal screen
alias oldtop="/usr/bin/top"                                            # Run the original top command
alias nf="neofetch"                                                    # Display system information using neofetch
alias of="onefetch --no-color-palette --include-hidden -E --no-title"  # Display git repository information using onefetch
alias ep="echo $PATH"                                                  # Print the PATH environment variable
alias resh="source ~/.config/fish/config.fish"                         # Reload the fish configuration
Zellij

zellij/config.kdl

alias zsr='zellij ac rename-session'  # Rename zellij session <name>
alias zsa='zellij a'                  # Attach to zellij session <name>
alias zsl='zellij ls'                 # List zellij sessions
alias zsk='zellij k'                  # Kill zellij session <name>
alias zsd='zellij d'                  # Delete zellij session <name>
Commands
alias ftl='find . -type f -name "*.*" -exec basename {} \; | sed "s/.*\.//" | sort -u'  # List unique file extensions in current directory
Git
alias ga='git add'                      # Stage changes
alias gaa='git add .'                   # Stage all changes in current directory
alias gaaa='git add -A'                 # Stage all changes
alias gc='git commit'                   # Commit changes
alias gcm='git commit -m'               # Commit changes with a message
alias gbr='git branch -M'               # Rename current branch
alias gcr='git clone'                   # Clone a repository
alias gd='git diff'                     # Show changes between commits, commit and working tree, etc.
alias gds='git diff --stat'             # Show diff stats (files changed, insertions, deletions)
alias gi='git init'                     # Initialize a new Git repository
alias gl='git log'                      # Show commit logs
alias gp='git pull'                     # Fetch from and integrate with another repository or a local branch
alias gpsh='git push'                   # Update remote refs along with associated objects
alias gss='git status'                  # Show the working tree status
alias gwho='git shortlog -s -n | head'  # Show top contributors
alias gcnt='git ls-files | wc -l'       # Count number of files in the repository
alias lg='lazygit'                      # Open Lazygit interface
alias grl='gh repo ls 956MB'            # List my repos on GitHub
alias grlf='gh repo ls 956MB --fork'    # List my forked repos on GitHub

# GitHub Copilot CLI function aliases
exp() {
    gh copilot explain "$*"
}
sug() {
    gh copilot suggest "$*"
}
Yabai/skhd

yabairc · skhdrc

alias ystart='yabai --start-service'      # Start yabai service
alias ystop='yabai --stop-service'        # Stop yabai service
alias yupgrade='brew upgrade yabai'       # Upgrade yabai using Homebrew
alias skstart='skhd --start-service'      # Start skhd service
alias skstop='skhd --stop-service'        # Stop skhd service

Fish functions

gcr.fish

Clones a repo from https/ssh, and as backup uses github cli

gcr https://github.com/Next-Flip/Momentum-Firmware.git

zj.fish

Opens a zellij session if it exists and creates it if not

zj # -> zellij attach <cwd> -c

zsde.fish

Delete all exited zellij sessions except the ones specified

zsde dotfiles|Momentum-Firmware.wiki # -> zellij ls -n | grep EXITED | grep -v "dotfiles\|Momentum-Firmware.wiki" | awk '{print $1}' | xargs -I {} zellij d {}

   ··////////////////////··/·   Project: dotfiles (3 branches)
 ·//·····/|/············/||/·   HEAD: 36a6ec8 (main, origin/main)
·|·      ·|·           ·//·     Pending: 5+- 14+ 1-
/|       ·|·         ·//·       Created: a year ago
·|/     ·/|·       ·//·         Languages:
 ·///////|·      ·//·                      ● Lua (90.4 %) ● Fish (4.1 %)
    ····       ·//·      ·/·               ● Python (2.0 %) ● BASH (1.8 %)
             ·||·      ·//·                ● Shell (0.9 %) ● Scheme (0.3 %)
           ·|//////···//·                  ● Other (0.4 %)
         ·||/·     ·||||·       Authors: 75% Alexander Bays <bays@956mb.com> 73
        ·//·       ///·//·               25% 956MB <bays@956mb.com> 24
      ·//·       /|/    ·|/     Last change: 4 minutes ago
    ·//·       ·//        //    URL: https://github.com/956MB/dotfiles.git
  ·//·       ·//·         ·|·   Commits: 97
 //·       ·/||/··········/|/   Churn (2): README.md 1
··         ·/··////////////··              scripts/myalias.py 1/conf.d/aliases.fish 1
                                Lines of code: 15694
                                Size: 21.25 MiB (99 files)
                                License: MIT

License

MIT license