summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/aliasrc2
-rw-r--r--.config/shortcutrc2
-rw-r--r--.config/zsh/.zshrc5
-rwxr-xr-x.local/bin/aliasgen4
-rw-r--r--.ssh/authorized_keys3
5 files changed, 10 insertions, 6 deletions
diff --git a/.config/aliasrc b/.config/aliasrc
index 63cdb91..959fee5 100644
--- a/.config/aliasrc
+++ b/.config/aliasrc
@@ -17,8 +17,10 @@ cdd, cd ..
e, $EDITOR
w, $BROWSER
g, git
+ff, fastfetch --raw $HOME/.cache/gentoo.six --logo-width 32 --logo-height 24 --logo-padding 2
bi, brew install
gg, go generate ./...
+gr, groot=$(git rev-parse --show-toplevel 2>/dev/null); [ -z "$groot" ] || cd "$groot" || return
mmi, make clean && make && sudo make install
R, R -q
tmcd, tmux attach-session -t
diff --git a/.config/shortcutrc b/.config/shortcutrc
index 255b582..37e92d4 100644
--- a/.config/shortcutrc
+++ b/.config/shortcutrc
@@ -32,7 +32,7 @@ Downloads, dl, ~/Downloads
Dropbox, bx, ~/Dropbox
Hotkeys, sx, ~/.config/sxhkd
Images, img, ~/Dropbox/A/Personnal/Photos/unsorted
-Neovim, vi, ~/.config/nvim/lua/ben
+Neovim, vi, ~/.config/nvim
OrgMode, om, ~/Dropbox/org
School, sf, ~/Dropbox/A/scholar/sherbrooke/24-05-T2
Scripts, sc, ~/.local/bin
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 383b94a..fef70e0 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -72,6 +72,8 @@ setopt prompt_subst
PROMPT=" %B%F{blue}𝄞 %b%F{yellow}"
RPROMPT="\$vcs_info_msg_0_ %B%F{magenta}(%B%F{cyan}%1/%B%F{magenta})"
+[ -z "$SSH_CONNECTION" ] || PROMPT="$(whoami)@$(hostname)$PROMPT"
+
zstyle ':vcs_info:git:*' formats '%b'
# Quickly navigate to a created directory
@@ -94,9 +96,6 @@ f() {
[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases"
[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts"
-# Git Root
-alias gr='cd $(git rev-parse --show-cdup)'
-
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
diff --git a/.local/bin/aliasgen b/.local/bin/aliasgen
index 00fbc68..8f976d0 100755
--- a/.local/bin/aliasgen
+++ b/.local/bin/aliasgen
@@ -1,7 +1,7 @@
#!/bin/sh
# Removing unecessary comments and documentation
-raw="$(sed 's/^\s*//;s/#.*$//;s/,\s*/,/g;/^$/d' <"$XDG_CONFIG_HOME/aliasrc")"
+raw="$(sed 's/^\s*//;s/#.*$//;s/,\s*/,/g;/^$/d' <"${XDG_CONFIG_HOME:-$HOME/.config}/aliasrc")"
# #---zsh---# #
-echo "$raw" | sed 's/\(.*\),\(.*\)/alias \1="\2"/' >$HOME/.cache/zsh-aliases
+echo "$raw" | sed 's/\(.*\),\(.*\)/\1(){\2 $@}/' >"${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases"
diff --git a/.ssh/authorized_keys b/.ssh/authorized_keys
index a670df9..a1f9957 100644
--- a/.ssh/authorized_keys
+++ b/.ssh/authorized_keys
@@ -1,3 +1,6 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDVXJbHCcGfpWGZgW59zWXm2yoEnMeiuwr+u7upBx98KRg26nlzlLjAXxRiKfHj+7V/Ybfhgr8N5XAT/IKY+eUQNZk8iKCHnvRpkJKB9+ZsVFR8Pjd/WOflguUIWY03/q0hYLv8x1RaoehAKL2kR8IIhj7fjlka/w+4C3nUyKV4Kf7NQfx8yTSbcf4bl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qbz4VgSeEij/gdAlJRVf4VytM+eYfWE3hv6kNnnPmTDQ2M0CatDFF61Pm70xx1v4QPtcJSjnXrJAmo376jou6x5KDO8BwF1uNzr5ihMDOkrbYKsETJ8pBCWdMuNSOKGKBIv+XV9wCnFinahoY3Q== master@workstation
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDPrODGy6xVNK3f04AW0jVHMUSEKzs3SztAAQ8U1o9zuC5FLfrcuokaAuEjNoVZzskaoo4SNZh5sf+T4xM8vQcaqnuK5f3ZTzyab9HItyNrmNUO/Vata6zqgXrEDVVeAuNWXUtgPiUbrQwaPfdcpiekDw2Z1F8whupW5K5qvACjRC1e3b2Td+5d0Wow/6CmMcRHslJN4wtz01hALPrXpWbUegnMghL5XroeiqfKQkfGxGa0cO5cb+VlsgGpL6nRgLUljVsIjvWdbH0z1TaZJAGNan7FYhDNJNthkorRvnEBtMSmhKLg+mUCZgX4BOKhbYaGBNwkKQZxCqYIhggiGdgOtD9mORPUjL/009ooUqj59k37tiCJuLNoYUKnsShRJqurarOZjBVzqPfubA6AFGa/tlAmkmBhFEB0TcRNFF6ISYMABI6Gv79OFU/APoSXLsSdXs2ObeU57ruigTTKRJb5b0mFNSXjAUj7lYXDezB6wgT17bBXlofaPKf6lpSUBZwMR8scDIZsSqZO4PauVo9xhTwP7IKZhuIHotcMjWNwS9RwCXTUzaxlQLd3pP3eW2XksdmOa6gVIccArJNiF+NXGufR8LEOZt56OI4pZIEQ+SHLyKFADr3qy9uy6JipEinDCtWTkjzY06U0auz7nB+fb33SLhlQJoOytHV6F2ltww== master@battlestation
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDkHCmxXhuojHcMCrEF/RTChBsrwCJVaJbzQc562tmmp7gINAIXh3xkIMvhtfyE65VOQO7nlKLfar1TeDOQ50Ywhun4CQvwnM2UjpeyQGhcrVx6KFyGuIOqABt/M48Cg2WQlQ92uGfYkTbPQ3MbGr8Nb4JPsXKHd9dVLRg/6H8fXDy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