Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion config/fish/aliases.fish
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,27 @@ else if [ -f /etc/alpine-release ]
else if [ uname = "FreeBSD" ]
alias get="sudo pkg install -y"
alias search="pkg search"
else if [ -f /etc/gentoo-release ]
alias get="sudo emerge"
alias search="emerge --search"
end

alias vim=nvim
alias cat="bat -Pp"

alias k="kubectl"
alias kp="kubectl get pods -A"
alias gswitch="gcloud config configurations activate"
alias kc="kubectx"

# Gentoo
alias gentoo-check-update="sudo emerge --sync; and sudo emerge -avuDNp @world | genlop -p"
alias gentoo-upgrade="sudo emerge -avuDN @world"

function gentoo-package-use
sudo vim /etc/portage/package.use/$argv
end

# Volume control (pipewire)
function vol
wpctl set-volume @DEFAULT_SINK@ $argv% 2>&1 > /dev/null
end
1 change: 1 addition & 0 deletions config/fish/config.fish
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export fish_greeting="" # Silence welcome message
export EDITOR=nvim
export TERM=xterm
6 changes: 6 additions & 0 deletions install-scripts/01-install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ if [ -f /etc/redhat-release ]; then
# install packages
sudo dnf install -y "${PACKAGES[@]}"
fi

# if Gentoo
if [ -f /etc/gentoo-release ]; then
PACKAGES=("${PACKAGES[@]/git/dev-vcs\/git}")
sudo emerge "${PACKAGES[@]}"
fi
17 changes: 16 additions & 1 deletion install-scripts/07-last-touches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,19 @@ if ! [ "$(basename $SHELL)" == "fish" ]; then
fi

# create local bin directory
mkdir -p ~/bin
mkdir -p ~/bin

# Gentoo specific kernel script
if [ -f /etc/gentoo-release ]; then
init_system=openrc
echo "Gentoo detected, need clarification on which init system is used."
echo -e "Which init system?\n\n1> openrc\n2> systemd"
read -p "[1]/2: " -n 1;
echo
if [ "$REPLY" == "2" ]; then
init_system=systemd
fi

sudo cp scripts/gentoo-kernel-upgrade-$init_system /usr/bin/gentoo-kernel-upgrade

fi
Loading