Compare commits

6 Commits

Author SHA1 Message Date
Martin Blazik
30c56f67f8 fish shell configuration 2025-04-25 09:54:13 +02:00
Martin Blazik
b11baff00e PowerShell installation script update 2025-04-24 13:34:23 +02:00
Martin Blazik
17f984c99c Add ~/.local/bin to rc 2025-04-24 13:18:06 +02:00
Martin Blazik
6a4fdb6162 Install script for lazygit 2025-04-24 13:14:16 +02:00
lachtan
6854c3bfa8 Join rc and rc.local folders 2025-01-03 16:58:29 +00:00
lachtan
87cc0c95ac Add ~/.local/bin to PATH 2025-01-03 16:49:46 +00:00
17 changed files with 28 additions and 9 deletions

1
bashrc
View File

@@ -15,6 +15,7 @@ fi
source "$LWS/functions.sh"
source_directory_sh "$LWS/rc"
source_directory_sh "$HOME/.bashrc.d"
append_path "$LWS/bin"
append_path "$LWS/opt/bin"

6
conf/fish/lws.fish Normal file
View File

@@ -0,0 +1,6 @@
# ~/.config/fish/config.fish
# ~/.config/fish/conf.d/
# cp $LWS/conf/fish/lws.fish $HOME/.config/fish/conf.d/
set -U fish_prompt_pwd_dir_length 0

10
install/lazygit.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -x
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
install lazygit -D -t $HOME/.local/bin/
rm lazygit.tar.gz
rm lazygit

View File

@@ -5,18 +5,21 @@ set -x
function pwsh_install_dotnet() {
# https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux#install-as-a-net-global-tool
dotnet tool install --global PowerShell
dotnet tool update --global PowerShell
}
function pwsh_install_apt() {
# https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu
# https://learn.microsoft.com/en-us/powershell/scripting/install/install-debian
deb=/tmp/packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
wget -O /tmp/packages-microsoft-prod.deb "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb"
sudo dpkg -i /tmp/packages-microsoft-prod.deb
rm /tmp/packages-microsoft-prod.deb
source /etc/os-release
wget -O $deb "https://packages.microsoft.com/config/debian/$VERSION_ID/packages-microsoft-prod.deb"
sudo dpkg -i $deb
rm $deb
sudo apt-get update
sudo apt-get install -y powershell
}

1
rc/01-path.sh Normal file
View File

@@ -0,0 +1 @@
prepend_path_try "$HOME/.local/bin"

View File

@@ -1,6 +1,9 @@
export PAGER=less
export EDITOR=vim
source_try "$HOME/.local/bin/env"
prepend_path_try "$HOME/.local/bin"
if can_run bat && ! is_alias bat; then
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi

View File

@@ -1,5 +0,0 @@
# Load user locals bashrc
source_directory_sh "$LWS/rc.local"
# user operations are in the end to have change to change everyting/anything
source_directory_sh "$HOME/.bashrc.d"