-
-
Save d-kja/a88851a55e6d8df4c63f4e9c7f986f47 to your computer and use it in GitHub Desktop.
BASH CONFIG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `BASIC LINUX CONFIG: https://dontpad.com/@d-kja-fedora` | |
# DUAL BOOT GRUB https://imgur.com/a/hfHkEkq | |
# OR YOU CAN JUST SETUP USING CLI BY USING | |
# su - <- to give access to the grub2 command | |
# grub2-mkconfig -o /boot/grub2/grub.cfg | |
# TO INCREASE THE GRUB TIMEOUT | |
# sudo nano /etc/default/grub | |
# And then you change the value of GRUB_TIMEOUT from 5 to any time in SECONDS | |
# finally you can reload the grub | |
# sudo update-grub | |
# SET WINDOWS BOOT AS DEFAULT | |
# sudo sed -i 's/GRUB_ENABLE_BLSCFG=true/GRUB_ENABLE_BLSCFG=false/g' /etc/default/grub | |
# sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg | |
# sudo dnf install -y grub-customizer | |
# The first command disables BLSCFG, the second command updates the grub configuration to apply the changes, and the third command installs Grub Customizer. | |
# ---------------------------------------------------------------------------------------------------------------// | |
# BG | |
- https://github.com/d-kja/d-kja/blob/main/img/Aravi.gif # pfp | |
- https://pbs.twimg.com/media/FCIcMxMVQAMDKsE?format=jpg&name=4096x4096 # BG 01 | |
- https://pbs.twimg.com/media/F9YMBlQbcAATedc?format=jpg&name=large # BG ALT | |
# NODE | |
- FNM: | |
01. Script: https://github.com/Schniz/fnm/blob/master/.ci/install.sh OR curl -fsSL https://fnm.vercel.app/install | bash | |
02. Create ~/.config/fish/conf.d/fnm.fish add this line to it: fnm env --use-on-cd | source | |
# BUN | |
- BUN: bun.sh | |
# VSCODE | |
- https://code.visualstudio.com/docs/setup/linux | |
# NPM | |
- Without sudo: https://github.com/sindresorhus/guides/blob/main/npm-global-without-sudo.md | |
# BASH | |
- Fish Shell: https://fishshell.com/ | |
- Starship: https://starship.rs/ | |
- Config: https://gist.github.com/d-kja/a88851a55e6d8df4c63f4e9c7f986f47 | |
- Zoxide: https://github.com/ajeetdsouza/zoxide | |
# GIT | |
- Adding SSH with Fish: eval $(ssh-agent -c); | |
- With keychain package: eval $(keychain --eval github); | |
# GNOME EXTENSIONS (extensions.gnome.org) | |
- Dash2Dock: https://extensions.gnome.org/extension/4994/dash2dock-lite/ | |
# ---------------------------------------------------------------------------------------------------------------// | |
### DEFAULT BASH CONFIG | |
# NPM PATH | |
NPM_PACKAGES="$HOME/.npm-packages" | |
export PATH="$PATH:$NPM_PACKAGES/bin" | |
export MANPATH="$MANPATH-$(manpath):$NPM_PACKAGES/share/man" | |
# FNM PATH | |
export PATH="/home/d-kja/.local/share/fnm:$PATH" | |
eval "`fnm env`" | |
eval "$(fnm env --use-on-cd)" | |
# RUST UP | |
. "$HOME/.cargo/env" | |
# ---------------------------------------------------------------------------------------------------------------// | |
### FISH CONFIG | |
if status is-interactive | |
# Remove default greeting | |
set fish_greeting | |
### | |
## ALIASES | |
### | |
alias c="clear" | |
alias C="clear" | |
alias l="ls -la" | |
alias L="ls -la" | |
alias rmf="rm -rf" | |
alias open="xdg-open" | |
alias rand="openssl rand -base64 32" | |
alias gst="git status" | |
alias glog="git log --oneline" | |
alias gadd="git add ." | |
alias gpush="git push" | |
alias gpull="git pull" | |
alias gbr="git branch" | |
alias gc="git checkout" | |
alias gcdev="git checkout development" | |
alias dc="docker compose" | |
alias dcu="docker compose up -d" | |
alias dcd="docker compose down" | |
alias di="docker images" | |
alias drmi="docker rmi" | |
alias dps="docker ps" | |
alias dpsa="docker ps -a" | |
alias dexec="docker exec -it" | |
alias f="yazi" | |
alias F="yazi" | |
alias ze="zellij" | |
alias ZE="zellij" | |
alias gui="gitui" | |
alias lat="laterem" | |
alias ws="curl -H 'Upgrade: websocket' -H \"Sec-WebSocket-Key: `openssl rand -base64 16`\" -H 'Sec-WebSocket-Version: 13' -H 'Connection: Upgrade' --http1.1 -sSv" | |
# -------------------------------------------------- # | |
### | |
## CONFIGURATION | |
### | |
# Binaries | |
#set PATH $PATH /opt/nvim-linux64/bin | |
set PATH $PATH $HOME/.local/bin | |
set PATH $PATH $NPM_PACKAGES/bin | |
set PATH $PATH $HOME/go/bin | |
# Setups | |
# STARSHIP PLUGIN | |
starship init fish | source | |
# ZOXIDE PLUGIN | |
zoxide init fish --cmd cd | source | |
# NPM PATH | |
set NPM_PACKAGES "$HOME/.npm-packages" | |
set MANPATH $NPM_PACKAGES/share/man $MANPATH | |
# RUST UP | |
. "$HOME/.cargo/env.fish" | |
# GOLANG | |
set PATH $PATH /usr/local/go/bin | |
# BUN | |
set --export BUN_INSTALL "$HOME/.bun" | |
set --export PATH $BUN_INSTALL/bin $PATH | |
# Zellij | |
eval (zellij setup --generate-auto-start fish | string collect) | |
# FNM | |
fnm env --use-on-cd --shell fish | source | |
# SSH | |
if test -n "$SSH_AGENT_PID" && ps -p $SSH_AGENT_PID > /dev/null | |
else | |
eval (ssh-agent -c) > /dev/null | |
ssh-add $HOME/.ssh/id_ed25519 > /dev/null 2>&1 | |
end | |
end | |
# ---------------------------------------------------------------------------------------------------------------// | |
### RUST/CARGO FILE (/home/d-kja/.cargo/env) | |
# FISH SHELL | |
set --export PATH $HOME/.cargo/bin $PATH | |
# ---------------------------------------------------------------------------------------------------------------// | |
# ALACRITTY TERMINAL (/home/d-kja/.config/alacritty/alacritty.toml) | |
[[keyboard.bindings]] | |
action = "SpawnNewInstance" | |
key = "N" | |
mods = "Control|Shift" | |
[window] | |
decorations = "full" | |
dynamic_title = true | |
opacity = 0.8 | |
title = "Bash" | |
[window.dimensions] | |
columns = 110 | |
lines = 27 | |
[window.padding] | |
x = 2 | |
y = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment