Added bashrc as symlink. Added wallpaper. Updated script
This commit is contained in:
parent
3ee39ff0c9
commit
e8310c4705
67
bashrc
Normal file
67
bashrc
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# If not running interactively, don't do anything
|
||||||
|
case $- in
|
||||||
|
*i*) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
source ~/.local/share/blesh/ble.sh --noattach
|
||||||
|
|
||||||
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
|
# See bash(1) for more options
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
|
# set variable identifying the chroot you work in (used in the prompt below)
|
||||||
|
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||||
|
debian_chroot=$(cat /etc/debian_chroot)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
|
# sleep 10; alert
|
||||||
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
|
# # enable programmable completion features (you don't need to enable
|
||||||
|
# # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
|
# # sources /etc/bash.bashrc).
|
||||||
|
# if ! shopt -oq posix; then
|
||||||
|
# if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
# . /usr/share/bash-completion/bash_completion
|
||||||
|
# elif [ -f /etc/bash_completion ]; then
|
||||||
|
# . /etc/bash_completion
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
|
||||||
|
PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
|
alias lz="lazygit"
|
||||||
|
alias vi="nvim"
|
||||||
|
alias vim="nvim"
|
||||||
|
alias ls="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions"
|
||||||
|
alias lsa="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions -a"
|
||||||
|
alias lss="eza -1 -l --icons=auto --git-repos --git -h -g --total-size -o --no-permissions -a"
|
||||||
|
|
||||||
|
source ~/.fzf.bash
|
||||||
|
eval "$(zoxide init bash)"
|
||||||
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
|
[[ ! ${BLE_VERSION-} ]] || ble-attach
|
||||||
|
|
||||||
|
# TMUX
|
||||||
|
if [[ ! $TERM =~ screen ]]; then
|
||||||
|
if which tmux >/dev/null 2>&1; then
|
||||||
|
tmux new-session
|
||||||
|
fi
|
||||||
|
fi
|
||||||
95
update.sh
95
update.sh
@ -201,6 +201,7 @@ sudo nala install -y nodejs
|
|||||||
|
|
||||||
# Install ble.sh
|
# Install ble.sh
|
||||||
printf -- '\033[33m Installing ble.sh\n\033[37m'
|
printf -- '\033[33m Installing ble.sh\n\033[37m'
|
||||||
|
sudo nala install gawk
|
||||||
if [ -d ~/ble.sh ]; then rm -rf ~/ble.sh; fi
|
if [ -d ~/ble.sh ]; then rm -rf ~/ble.sh; fi
|
||||||
cd ~
|
cd ~
|
||||||
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
|
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
|
||||||
@ -239,8 +240,8 @@ if [ $DESKTOP == "yes" ]; then
|
|||||||
printf -- '\033[33m Installing Visual Code\n\033[37m'
|
printf -- '\033[33m Installing Visual Code\n\033[37m'
|
||||||
sudo snap install --classic code
|
sudo snap install --classic code
|
||||||
|
|
||||||
printf -- '\033[33m Installing Discord\n\033[37m'
|
# printf -- '\033[33m Installing Discord\n\033[37m'
|
||||||
flatpak install -y flathub com.discordapp.Discord
|
# flatpak install -y flathub com.discordapp.Discord
|
||||||
|
|
||||||
printf -- '\033[33m Installing KiCad\n\033[37m'
|
printf -- '\033[33m Installing KiCad\n\033[37m'
|
||||||
flatpak install -y flathub org.kicad.KiCad
|
flatpak install -y flathub org.kicad.KiCad
|
||||||
@ -262,6 +263,10 @@ if [ $DESKTOP == "yes" ]; then
|
|||||||
printf -- '\033[33m Installing remmina\n\033[37m'
|
printf -- '\033[33m Installing remmina\n\033[37m'
|
||||||
sudo nala install -y remmina
|
sudo nala install -y remmina
|
||||||
|
|
||||||
|
# Install gnome tweaks
|
||||||
|
printf -- '\033[33m Installing gnome tweaks\n\033[37m'
|
||||||
|
sudo nala install -y gnome-tweaks
|
||||||
|
|
||||||
# Install NerdFonts
|
# Install NerdFonts
|
||||||
printf -- '\033[33m Installing NerdFonts\n\033[37m'
|
printf -- '\033[33m Installing NerdFonts\n\033[37m'
|
||||||
mkdir -p /home/$USER/.local/share/fonts
|
mkdir -p /home/$USER/.local/share/fonts
|
||||||
@ -301,6 +306,12 @@ if [ $DESKTOP == "yes" ]; then
|
|||||||
sudo usermod -a -G vboxusers $USER
|
sudo usermod -a -G vboxusers $USER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $VER == "22.04" ]; then
|
||||||
|
# Install helvum
|
||||||
|
printf -- '\033[33m Installing pavucontrol\n\033[37m'
|
||||||
|
sudo nala install -y pavucontrol
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $VER == "24.04" ]; then
|
if [ $VER == "24.04" ]; then
|
||||||
# Install helvum
|
# Install helvum
|
||||||
printf -- '\033[33m Installing helvum\n\033[37m'
|
printf -- '\033[33m Installing helvum\n\033[37m'
|
||||||
@ -357,44 +368,48 @@ ln -sf ~/code_server/update_wrapper.sh ~/.local/bin/update
|
|||||||
printf -- '\033[33m Symlinking start script\n\033[37m'
|
printf -- '\033[33m Symlinking start script\n\033[37m'
|
||||||
ln -sf ~/code_server/start.sh ~/.start
|
ln -sf ~/code_server/start.sh ~/.start
|
||||||
|
|
||||||
# Restore default .bashrc
|
# Symlink bashrc
|
||||||
printf -- '\033[33m Restoring default .bashrc\n\033[37m'
|
printf -- '\033[33m Symlinking bashrc\n\033[37m'
|
||||||
sudo /bin/cp /etc/skel/.bashrc ~/.bashrc
|
ln -sf ~/code_server/bashrc ~/.bashrc
|
||||||
|
|
||||||
# Add path to bashrc
|
# # Restore default .bashrc
|
||||||
printf -- '\033[33m Adding path to bashrc\n\033[37m'
|
# printf -- '\033[33m Restoring default .bashrc\n\033[37m'
|
||||||
echo 'PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
|
# sudo /bin/cp /etc/skel/.bashrc ~/.bashrc
|
||||||
echo 'alias lz="lazygit"' >> ~/.bashrc
|
#
|
||||||
echo 'alias vi="nvim"' >> ~/.bashrc
|
# # Add path to bashrc
|
||||||
echo 'alias vim="nvim"' >> ~/.bashrc
|
# printf -- '\033[33m Adding path to bashrc\n\033[37m'
|
||||||
echo 'alias ls="eza -1 -l --icons=auto -h -g -o --no-permissions -a"' >> ~/.bashrc
|
# echo 'PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
|
||||||
echo 'alias lsg="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions -a"' >> ~/.bashrc
|
# echo 'alias lz="lazygit"' >> ~/.bashrc
|
||||||
echo 'alias lss="eza -1 -l --icons=auto -h -g --total-size -o --no-permissions -a"' >> ~/.bashrc
|
# echo 'alias vi="nvim"' >> ~/.bashrc
|
||||||
echo 'source ~/.fzf.bash' >> ~/.bashrc
|
# echo 'alias vim="nvim"' >> ~/.bashrc
|
||||||
echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc
|
# echo 'alias ls="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions"' >> ~/.bashrc
|
||||||
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
|
# echo 'alias lsa="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions -a"' >> ~/.bashrc
|
||||||
echo 'eval "$(starship init bash)"' >> ~/.bashrc
|
# echo 'alias lss="eza -1 -l --icons=auto --git-repos --git -h -g --total-size -o --no-permissions -a"' >> ~/.bashrc
|
||||||
|
# echo 'source ~/.fzf.bash' >> ~/.bashrc
|
||||||
if [ $DESKTOP == "no" ] && [ $WSL == "no" ]; then
|
# echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc
|
||||||
# Add tmux/nvim autostart to bashrc
|
# echo 'eval "$(zoxide init bash)"' >> ~/.bashrc
|
||||||
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
# echo 'eval "$(starship init bash)"' >> ~/.bashrc
|
||||||
echo "# TMUX" >> ~/.bashrc
|
#
|
||||||
echo "if [[ ! \$TERM =~ screen ]]; then" >> ~/.bashrc
|
# if [ $DESKTOP == "no" ] && [ $WSL == "no" ]; then
|
||||||
echo "if which tmux >/dev/null 2>&1; then" >> ~/.bashrc
|
# # Add tmux/nvim autostart to bashrc
|
||||||
echo ' test -z "$TMUX" && (tmux attach || tmux new-session ~/.start)' >> ~/.bashrc
|
# printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
||||||
echo "fi" >> ~/.bashrc
|
# echo "# TMUX" >> ~/.bashrc
|
||||||
echo "fi" >> ~/.bashrc
|
# echo "if [[ ! \$TERM =~ screen ]]; then" >> ~/.bashrc
|
||||||
fi
|
# echo "if which tmux >/dev/null 2>&1; then" >> ~/.bashrc
|
||||||
|
# echo ' test -z "$TMUX" && (tmux attach || tmux new-session ~/.start)' >> ~/.bashrc
|
||||||
if [ $DESKTOP == "yes" ] || [ $WSL == "yes" ]; then
|
# echo "fi" >> ~/.bashrc
|
||||||
# Add tmux/nvim autostart to bashrc
|
# echo "fi" >> ~/.bashrc
|
||||||
printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
# fi
|
||||||
echo "# TMUX" >> ~/.bashrc
|
#
|
||||||
echo "if [[ ! \$TERM =~ screen ]]; then" >> ~/.bashrc
|
# if [ $DESKTOP == "yes" ] || [ $WSL == "yes" ]; then
|
||||||
echo "if which tmux >/dev/null 2>&1; then" >> ~/.bashrc
|
# # Add tmux/nvim autostart to bashrc
|
||||||
echo ' tmux new-session' >> ~/.bashrc
|
# printf -- '\033[33m Adding tmux/nvim autostart to bashrc\n\033[37m'
|
||||||
echo "fi" >> ~/.bashrc
|
# echo "# TMUX" >> ~/.bashrc
|
||||||
echo "fi" >> ~/.bashrc
|
# echo "if [[ ! \$TERM =~ screen ]]; then" >> ~/.bashrc
|
||||||
fi
|
# echo "if which tmux >/dev/null 2>&1; then" >> ~/.bashrc
|
||||||
|
# echo ' tmux new-session' >> ~/.bashrc
|
||||||
|
# echo "fi" >> ~/.bashrc
|
||||||
|
# echo "fi" >> ~/.bashrc
|
||||||
|
# fi
|
||||||
|
|
||||||
printf -- '\033[32m \n\n***** Update complete! Please restart your terminal. *****\n\n\033[37m'
|
printf -- '\033[32m \n\n***** Update complete! Please restart your terminal. *****\n\n\033[37m'
|
||||||
|
|||||||
BIN
wallpaper/wallpaper1.jpg
Normal file
BIN
wallpaper/wallpaper1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 576 KiB |
@ -18,7 +18,7 @@ config.keys = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.enable_tab_bar = false
|
config.enable_tab_bar = false
|
||||||
config.window_decorations = "RESIZE"
|
-- config.window_decorations = "RESIZE"
|
||||||
|
|
||||||
config.colors = {
|
config.colors = {
|
||||||
-- The default text color
|
-- The default text color
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user