From 3f441c3c097613f1d1317368d9a549162acef0c1 Mon Sep 17 00:00:00 2001 From: Wynd Date: Sat, 9 Nov 2024 10:39:23 +0200 Subject: [PATCH] Fixed some file paths, better shortcuts for git-heatmap and more git aliases --- .config/nushell/config.nu | 14 ++++++++------ .config/nvim/lua/nvwynd/plugins/treesitter.lua | 1 + install.sh | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.config/nushell/config.nu b/.config/nushell/config.nu index 07570c2..69d01d6 100644 --- a/.config/nushell/config.nu +++ b/.config/nushell/config.nu @@ -6,9 +6,9 @@ $env.GREP_COLORS = 'ms01;04;32' $env.TIMEFMT = "real\t%E\nuser\t%U\nsys\t%S" -$env.GEM_HOME = "~/.gems" -$env.BUN_INSTALL = "~/.bun" -$env.ASDF_DIR = "~/.asdf" +$env.GEM_HOME = "/home/wynd/.gems" +$env.BUN_INSTALL = "/home/wynd/.bun" +$env.ASDF_DIR = "/home/wynd/.asdf" $env.WORK_DIR = "/home/wynd/Workspace/Active Projects" $env.PATH = "~/.gems/bin" | append $env.PATH @@ -28,9 +28,9 @@ alias untar = tar -xvzf alias diskspace = df -ht ext4 alias ytda = yt-dlp -x --audio-format wav alias ytdv = yt-dlp -alias repos = git-heatmap -a="Wynd" --root-dir $env.WORK_DIR --split-months -alias reposn = git-heatmap -a="Wynd" --root-dir $env.WORK_DIR --split-months --months-per-row 6 --format numbers +def repos [] { ^clear; git-heatmap -a="Wynd" --root-dir $env.WORK_DIR --split-months } +def reposn [] { ^clear; git-heatmap -a="Wynd" --root-dir $env.WORK_DIR --split-months --months-per-row 6 --format numbers } def uuid [] { ^uuidgen | tr -d '\n' | xclip -selection c } def psm [] { ps | sort-by -r mem | select pid name mem | first 30} @@ -44,6 +44,8 @@ alias gco = git checkout alias gcb = git checkout -b alias gp = git push alias gpl = git pull +alias gd = git diff +alias gdc = git diff --cached alias glo = git log --pretty='format:%C(yellow)%as %C(blue)%cn %C(green)%h %C(reset)%s' --no-merges alias glg = git log --graph $'--pretty=%Cred%h%Creset -%C(char lp)auto(char rp)%d%Creset %s %Cgreen(char lp)%ad(char rp) %C(char lp)bold blue(char rp)<%an>%Creset' --date=short @@ -950,7 +952,7 @@ source ./completions/cargo.nu source ./completions/docker.nu # clears the screen and displays the figlet -clear +^clear figlet -f 'Red Phoenix' Wynd | lolcat use ~/.cache/starship/init.nu diff --git a/.config/nvim/lua/nvwynd/plugins/treesitter.lua b/.config/nvim/lua/nvwynd/plugins/treesitter.lua index 069cbf6..cb85dcd 100644 --- a/.config/nvim/lua/nvwynd/plugins/treesitter.lua +++ b/.config/nvim/lua/nvwynd/plugins/treesitter.lua @@ -69,6 +69,7 @@ return { "java", "groovy", "glsl", + "wgsl", }, sync_install = false, highlight = { enable = true }, diff --git a/install.sh b/install.sh index 795d94e..888fc84 100755 --- a/install.sh +++ b/install.sh @@ -127,7 +127,7 @@ export PATH=$PATH:/home/$USER/.local/bin # Core packages="make cmake autoconf xclip coreutils git apt-transport-https ca-certificates curl wget gnupg lsb-release coreutils sed build-essential \ - libssl-dev libudev-dev libyaml-dev libconfig libfontconfig-dev libncurses-dev lld \ + libssl-dev libudev-dev libyaml-dev libconfig libfontconfig-dev libncurses-dev libdbus-1-dev libxcb1-dev libxrandr2 lld \ firefox git python3-pip zsh mpv figlet lolcat sqlitebrowser flatpak nala tmux filezilla \ ffmpeg libavcodec-extra ubuntu-restricted-extras \ gnome-shell-extensions gnome-tweak-tool gnome-menus gnome-user-share dconf-editor gparted alacarte \