Compare commits
171 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 90c62cd0f5 | |||
| 42888b55f4 | |||
| 86971004f1 | |||
| 7e3213b9ed | |||
| 70a84ef9b6 | |||
| 1623c77a91 | |||
| 2c33518f6f | |||
| 59b752cf48 | |||
| dee54164bc | |||
| 33441765a7 | |||
| 4daa3cde5f | |||
| 974a30186e | |||
| aa5996a1d5 | |||
| 20ea52277d | |||
| 78df6f0bb8 | |||
| b5768ab96e | |||
| bf272e0cb5 | |||
| 5b4fce0444 | |||
| d382450c64 | |||
| 3ca792bd8f | |||
| 16c65295ba | |||
| 3a8ce2da82 | |||
| 5a8ee95b24 | |||
| f2a6a1abed | |||
| a4d38b717d | |||
| c0f657fd0f | |||
| 9a2d27810f | |||
| 1990e1e047 | |||
| dde1082f18 | |||
| 4eb834295e | |||
| 7d447ceba2 | |||
| ccca1e172e | |||
| f42e775fbf | |||
| 5b0e0ff025 | |||
| ef15074d6d | |||
| 43fec98399 | |||
| eb3bbeacc3 | |||
| 4f9d0e344c | |||
| 67f5434fb0 | |||
| cb827a1a33 | |||
| d0beab13fc | |||
| eae75327f3 | |||
| d68125fbbf | |||
| 10aea1193f | |||
| f4bf35e0d8 | |||
| 6303a831e1 | |||
| f1c60831a7 | |||
| 421fb47afa | |||
| b71d277beb | |||
| 0e342df081 | |||
| 70d9b17ee5 | |||
| c09450490d | |||
| bbe8b502e8 | |||
| aabef65e95 | |||
| 445a753154 | |||
| 57fdfd426a | |||
| 79e77cd5e6 | |||
| 5ec03c902c | |||
| 2aa50cdc7b | |||
| 54bb9b4d99 | |||
| 470ef57577 | |||
| 342da216e4 | |||
| e54d57037e | |||
| cf7daf5c6f | |||
| d59f9fb262 | |||
| 0508ca604e | |||
| ebd441bb22 | |||
| a558f16269 | |||
| ec66763bf6 | |||
| 17a11cdc78 | |||
| d695c32545 | |||
| ebe9717344 | |||
| 2e3082b6d6 | |||
| f67bee1c2b | |||
| 607067a18e | |||
| 8124014dab | |||
| 9a0ab81b7c | |||
| bf484a86af | |||
| 87f666f9be | |||
| baaf340b43 | |||
| db351d8caa | |||
| 9b00af9bde | |||
| 02674e103f | |||
| a000bdea23 | |||
| f4199affbd | |||
| 983dc33dee | |||
| 93ee554720 | |||
| 15b28ac49e | |||
| e961a7084f | |||
| d87a735e80 | |||
| cd588f5a5e | |||
| 9877f5d34e | |||
| 0dd1d86a79 | |||
| 9e0cbc3b5e | |||
| 4537d90d4d | |||
| 64d86ff17d | |||
| 0fdc1dca69 | |||
| f61f0361f0 | |||
| 48831b1fac | |||
| 7d0333d0f3 | |||
| 36d98d4cac | |||
| 701277ceeb | |||
| b2068af8bf | |||
| 7decbeed4c | |||
| 0f73d4c4d0 | |||
| 3f0c3697d5 | |||
| eb51004ec9 | |||
| e4d51f9f16 | |||
| ea05e2608f | |||
| 9d36300f66 | |||
| bdaba048aa | |||
| c167df1d7f | |||
| 705ce91cd9 | |||
| 2f834d0c80 | |||
| aad740ae21 | |||
| 4e463f72ed | |||
| 436fd3c6e7 | |||
| a247068efc | |||
| 5759bc5684 | |||
| 51c0127306 | |||
| 20086ca396 | |||
| 232c631cdc | |||
| ceeb4e9a7d | |||
| 762181e619 | |||
| b0e6f5deed | |||
| d813f6e5b3 | |||
| d3a2126dfe | |||
| ef7f434ec1 | |||
| 2752a3ea1e | |||
| 10372594b5 | |||
| a78bbb6d3e | |||
| 66a2fe5b57 | |||
| f99301616b | |||
| d9ed3113a9 | |||
| d59639fd23 | |||
| 408d8dbebc | |||
| b78c4ae386 | |||
| 0e7b4a3f44 | |||
| 87d1dba514 | |||
| 77ec3bc041 | |||
| 69bdf88717 | |||
| a58c128df1 | |||
| 3099594406 | |||
| 0ac3e16046 | |||
| b00b17b048 | |||
| b18780ead9 | |||
| 15fdac347e | |||
| cbf2220d57 | |||
| cd9b7f18e0 | |||
| ec490a84d7 | |||
| 2caf217108 | |||
| fcb6a96340 | |||
| eb4e04d997 | |||
| bad185ee7e | |||
| 778a62237d | |||
| afbfc07ac4 | |||
| fcc5f89c14 | |||
| d169a18588 | |||
| 2263e35130 | |||
| 385b2d8afe | |||
| 4c542348fb | |||
| f6f9cb889a | |||
| 4cf4a0509f | |||
| 82aedf5a20 | |||
| 1e8a13f9c8 | |||
| e5ef3c4241 | |||
| a5b2f86c07 | |||
| 39e2855aaa | |||
| 3794076d7a | |||
|
|
d4baa0e277 | ||
|
|
e4ce16cb0c |
33 changed files with 798 additions and 54 deletions
6
.zshrc
6
.zshrc
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
# Add aliases
|
|
||||||
source ./scripts/aliases.sh
|
|
||||||
|
|
||||||
# Add pyenv initialization script
|
|
||||||
source ./scripts/pyenv-config.sh
|
|
||||||
59
Makefile
Normal file
59
Makefile
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
DOTFILES_DIR := /home/osbm/Documents/dotfiles/src
|
||||||
|
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git clone https://github.com/osbm/rerouting.git ~/Documents/rerouting
|
||||||
|
git clone https://github.com/osbm/wallpapers.git ~/Pictures/wallpapers
|
||||||
|
|
||||||
|
make-directories:
|
||||||
|
mkdir -p ~/Pictures/screenshots
|
||||||
|
mkdir -p ~/Documents/bin
|
||||||
|
mkdir -p ~/Documents/git
|
||||||
|
mkdir -p ~/Documents/temp
|
||||||
|
mkdir -p ~/Videos/obs-recordings
|
||||||
|
mkdir -p ~/Videos/youtube
|
||||||
|
|
||||||
|
|
||||||
|
install-programs-pacman:
|
||||||
|
sudo pacman -S tmux alacritty trash-cli git git-lfs spectacle unzip docker docker-compose pyenv libreoffice-still obsidian tlrc
|
||||||
|
|
||||||
|
link:
|
||||||
|
# delete directories if they exist
|
||||||
|
rm -rf ~/.config/alacritty
|
||||||
|
rm -rf ~/.config/mpv
|
||||||
|
rm -rf ~/.config/kitty
|
||||||
|
|
||||||
|
rm -rf ~/.config/fish
|
||||||
|
# rm -rf ~/.config/obs-studio
|
||||||
|
rm -rf ~/.config/flameshot
|
||||||
|
rm -rf ~/.config/nvim
|
||||||
|
rm -rf ~/.config/fcitx5
|
||||||
|
|
||||||
|
mkdir -p ~/.config/alacritty
|
||||||
|
mkdir -p ~/.config/mpv
|
||||||
|
mkdir -p ~/.config/kitty
|
||||||
|
mkdir -p ~/.config/flameshot
|
||||||
|
mkdir -p ~/.config/Code/User
|
||||||
|
mkdir -p ~/.config/tlrc
|
||||||
|
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/fish/ ~/.config/fish
|
||||||
|
# ln -sf $(DOTFILES_DIR)/.config/obs-studio/ ~/.config/obs-studio
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/nvim ~/.config/nvim
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/fcitx5 ~/.config/fcitx5
|
||||||
|
|
||||||
|
ln -sf $(DOTFILES_DIR)/.gitconfig ~/.gitconfig
|
||||||
|
ln -sf $(DOTFILES_DIR)/.gitignore ~/.gitignore
|
||||||
|
ln -sf $(DOTFILES_DIR)/.ssh/config ~/.ssh/config
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/mpv/mpv.conf ~/.config/mpv/mpv.conf
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/kitty/kitty.conf ~/.config/kitty/kitty.conf
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/tmux/tmux.conf ~/.config/tmux/tmux.conf
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/flameshot/flameshot.ini ~/.config/flameshot/flameshot.ini
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/Code/User/settings.json ~/.config/Code/User/settings.json
|
||||||
|
ln -sf $(DOTFILES_DIR)/.config/tlrc/config.toml ~/.config/tlrc/config.toml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
install-tpm:
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||||
|
echo "Dont forget to install tmux plugins by 'C-s I'"
|
||||||
52
README.md
52
README.md
|
|
@ -1,46 +1,12 @@
|
||||||
# dotfiles
|
# To Install my configuration:
|
||||||
Restore the settings of
|
|
||||||
|
|
||||||
- [ ] vscode
|
```
|
||||||
- [ ] zsh
|
git clone https://github.com/osbm/dotfiles.git ~/Documents/dotfiles
|
||||||
- [ ] zsh-autosuggestions
|
make make-directories # create my default directories
|
||||||
- [ ] zsh-syntax-highlighting
|
make install-programs-pacman # install used programs
|
||||||
- [ ] zsh-prompt
|
make link # symlink all configs (be careful this deletes/overwrites previous ones)
|
||||||
- [ ] vim
|
make install-tpm # install tpm for tmux
|
||||||
- [ ] tmux
|
make clone # clone my private repositories (obsidian vault and wallpaper folder)
|
||||||
- [ ] git
|
```
|
||||||
- [ ] rclone
|
|
||||||
|
|
||||||
Also I should configure the git
|
|
||||||
git config --global user.name
|
|
||||||
git config --global user.email
|
|
||||||
|
|
||||||
# after a system install
|
|
||||||
- [ ] install optimization repository
|
|
||||||
- [ ] install rclone backup script
|
|
||||||
- [ ] clone all the repositories that are not archived
|
|
||||||
- [ ] install these python packages
|
|
||||||
- [ ] kaggle-cli
|
|
||||||
- [ ] animdl
|
|
||||||
- [ ] tensorflow / pytorch / scipy / sklearn
|
|
||||||
- [ ] install all these programs
|
|
||||||
- [ ] pyenv
|
|
||||||
- [ ] discord
|
|
||||||
- [ ] etcher
|
|
||||||
- [ ] libreoffice
|
|
||||||
- [ ] chrome
|
|
||||||
- [ ] zotero
|
|
||||||
- [ ] obsidian
|
|
||||||
- [ ] gitkraken / github desktop
|
|
||||||
- [ ] zsh
|
|
||||||
- [ ] ani-cli / animdl
|
|
||||||
- [ ] vscode
|
|
||||||
- [ ] docker
|
|
||||||
- [ ] blender
|
|
||||||
- [ ] gimp
|
|
||||||
- [ ] microsoft teams
|
|
||||||
- [ ] rclone
|
|
||||||
- [ ] trash (cli)
|
|
||||||
- [ ] spectacle (screenshot)
|
|
||||||
- [ ] appimagelauncher for obsidian
|
|
||||||
|
|
||||||
|
|
|
||||||
24
dockers/docker-compose.yml
Normal file
24
dockers/docker-compose.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
name: docker-builder
|
||||||
|
|
||||||
|
|
||||||
|
services:
|
||||||
|
py12:
|
||||||
|
image: py12
|
||||||
|
build:
|
||||||
|
context: ./pyenv
|
||||||
|
args:
|
||||||
|
PYTHON_VERSION: 3.12.3
|
||||||
|
py13:
|
||||||
|
image: py13
|
||||||
|
build:
|
||||||
|
context: ./pyenv
|
||||||
|
args:
|
||||||
|
PYTHON_VERSION: 3.12.3
|
||||||
|
yt:
|
||||||
|
image: yt
|
||||||
|
build:
|
||||||
|
context: ./yt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
14
dockers/pyenv/Dockerfile
Normal file
14
dockers/pyenv/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
FROM osbm/pyenv:latest
|
||||||
|
|
||||||
|
ARG PYTHON_VERSION
|
||||||
|
RUN pyenv install $PYTHON_VERSION
|
||||||
|
RUN pyenv global $PYTHON_VERSION
|
||||||
|
RUN pyenv rehash
|
||||||
|
|
||||||
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
|
# Optional : Checks Pyenv version on container start-up
|
||||||
|
# ENTRYPOINT [ "pyenv","version" ]
|
||||||
|
RUN eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
ENTRYPOINT /bin/bash
|
||||||
14
dockers/yt/Dockerfile
Normal file
14
dockers/yt/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
RUN apt-get install -y software-properties-common
|
||||||
|
|
||||||
|
RUN add-apt-repository ppa:tomtomtom/yt-dlp
|
||||||
|
|
||||||
|
RUN apt-get install -y yt-dlp
|
||||||
|
|
||||||
|
WORKDIR /downloads
|
||||||
|
|
||||||
|
ENTRYPOINT ["yt-dlp"]
|
||||||
|
# docker run -v $(pwd):/downloads yt "https://www.youtube.com/watch?v=wjZofJX0v4M"
|
||||||
76
justfile
Normal file
76
justfile
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
|
||||||
|
default:
|
||||||
|
just -l
|
||||||
|
|
||||||
|
|
||||||
|
link_file path:
|
||||||
|
mkdir -p {{home_directory()}}/{{parent_directory(path)}}
|
||||||
|
rm -rf {{home_directory()}}/{{path}}
|
||||||
|
ln -sf {{absolute_path(prepend("src/",path))}} {{home_directory()}}/{{path}}
|
||||||
|
|
||||||
|
link-alacritty: (link_file ".config/alacritty/alacritty.toml")
|
||||||
|
echo "Alacritty configuration linked"
|
||||||
|
|
||||||
|
link-code: (link_file ".config/Code/User/settings.json")
|
||||||
|
# link_file .config/Code/User/keybindings.json
|
||||||
|
echo "VSCode configuration linked"
|
||||||
|
|
||||||
|
link-fcitx5: (link_file ".config/fcitx5")
|
||||||
|
echo "Fcitx5 configuration linked"
|
||||||
|
|
||||||
|
link-flameshot: (link_file ".config/flameshot/flameshot.ini")
|
||||||
|
echo "Flameshot configuration linked"
|
||||||
|
|
||||||
|
link-kitty: (link_file ".config/kitty/kitty.conf")
|
||||||
|
echo "Kitty configuration linked"
|
||||||
|
|
||||||
|
link-mpv: (link_file ".config/mpv/mpv.conf")
|
||||||
|
echo "mpv configuration linked"
|
||||||
|
|
||||||
|
link-neovim: (link_file ".config/nvim")
|
||||||
|
echo "Neovim configuration linked"
|
||||||
|
|
||||||
|
link-tlrc: (link_file ".config/tlrc/config.toml")
|
||||||
|
echo "tlrc configuration linked"
|
||||||
|
|
||||||
|
link-tmux: (link_file ".config/tmux/tmux.conf")
|
||||||
|
echo "Tmux configuration linked"
|
||||||
|
|
||||||
|
link-fish: (link_file ".config/fish")
|
||||||
|
echo "Fish configuration linked"
|
||||||
|
|
||||||
|
link-git: (link_file ".gitconfig") (link_file ".gitignore")
|
||||||
|
echo "Git configuration linked"
|
||||||
|
|
||||||
|
link-starship: (link_file ".config/starship.toml")
|
||||||
|
echo "Starship configuration linked"
|
||||||
|
|
||||||
|
link-zsh: (link_file ".zshrc") (link_file ".zprofile")
|
||||||
|
echo "Zsh configuration linked"
|
||||||
|
|
||||||
|
link-bash: (link_file ".bashrc") (link_file ".bash_profile")
|
||||||
|
echo "Bash configuration linked"
|
||||||
|
|
||||||
|
link-terminal-programs: link-alacritty link-kitty link-tmux link-fish link-zsh link-bash link-tlrc link-git link-starship
|
||||||
|
echo "Terminal programs configuration linked"
|
||||||
|
|
||||||
|
link-all: link-terminal-programs link-code link-fcitx5 link-flameshot link-mpv
|
||||||
|
echo "All configuration linked"
|
||||||
|
|
||||||
|
clone:
|
||||||
|
echo "Please be informed that these repositories are private github repositories of osbm."
|
||||||
|
git clone https://github.com/osbm/rerouting.git ~/Documents/rerouting
|
||||||
|
git clone https://github.com/osbm/wallpapers.git ~/Pictures/wallpapers
|
||||||
|
|
||||||
|
create-default-folders:
|
||||||
|
mkdir -p ~/Pictures/screenshots
|
||||||
|
mkdir -p ~/Documents/bin
|
||||||
|
mkdir -p ~/Documents/git
|
||||||
|
mkdir -p ~/Documents/temp
|
||||||
|
mkdir -p ~/Videos/obs-recordings
|
||||||
|
mkdir -p ~/Videos/youtube
|
||||||
|
|
||||||
|
install-tpm:
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||||
|
echo "Dont forget to install tmux plugins by 'C-s I'"
|
||||||
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# show everything
|
|
||||||
alias ll="ls -la"
|
|
||||||
58
scripts/better-git-branch.sh
Executable file
58
scripts/better-git-branch.sh
Executable file
|
|
@ -0,0 +1,58 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
RED='\033[0;31m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
NO_COLOR='\033[0m'
|
||||||
|
BLUE='\033[0;34m'
|
||||||
|
YELLOW='\033[0;33m'
|
||||||
|
NO_COLOR='\033[0m'
|
||||||
|
|
||||||
|
width1=5
|
||||||
|
width2=6
|
||||||
|
width3=30
|
||||||
|
width4=20
|
||||||
|
width5=40
|
||||||
|
|
||||||
|
# Function to count commits
|
||||||
|
count_commits() {
|
||||||
|
local branch="$1"
|
||||||
|
local base_branch="$2"
|
||||||
|
local ahead_behind
|
||||||
|
|
||||||
|
ahead_behind=$(git rev-list --left-right --count "$base_branch"..."$branch")
|
||||||
|
echo "$ahead_behind"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main script
|
||||||
|
main_branch=$(git rev-parse HEAD)
|
||||||
|
|
||||||
|
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" "Ahead" "Behind" "Branch" "Last Commit" " "
|
||||||
|
|
||||||
|
# Separator line for clarity
|
||||||
|
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" "-----" "------" "------------------------------" "-------------------" " "
|
||||||
|
|
||||||
|
|
||||||
|
format_string="%(objectname:short)@%(refname:short)@%(committerdate:relative)"
|
||||||
|
IFS=$'\n'
|
||||||
|
|
||||||
|
|
||||||
|
for branchdata in $(git for-each-ref --sort=-authordate --format="$format_string" refs/heads/ --no-merged); do
|
||||||
|
|
||||||
|
sha=$(echo "$branchdata" | cut -d '@' -f1)
|
||||||
|
branch=$(echo "$branchdata" | cut -d '@' -f2)
|
||||||
|
time=$(echo "$branchdata" | cut -d '@' -f3)
|
||||||
|
if [ "$branch" != "$main_branch" ]; then
|
||||||
|
# Get branch description
|
||||||
|
description=$(git config branch."$branch".description)
|
||||||
|
|
||||||
|
# Count commits ahead and behind
|
||||||
|
ahead_behind=$(count_commits "$sha" "$main_branch")
|
||||||
|
ahead=$(echo "$ahead_behind" | cut -f2)
|
||||||
|
behind=$(echo "$ahead_behind" | cut -f1)
|
||||||
|
|
||||||
|
# Display branch info
|
||||||
|
printf "${GREEN}%-${width1}s ${RED}%-${width2}s ${BLUE}%-${width3}s ${YELLOW}%-${width4}s ${NO_COLOR}%-${width5}s\n" $ahead $behind $branch "$time" "$description"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
|
||||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
|
||||||
eval "$(pyenv init --path)"
|
|
||||||
1
src/.bashrc
Normal file
1
src/.bashrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
eval "$(starship init bash)"
|
||||||
18
src/.config/Code/User/settings.json
Normal file
18
src/.config/Code/User/settings.json
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"window.dialogStyle": "custom",
|
||||||
|
"window.titleBarStyle": "custom",
|
||||||
|
"git.autofetch": true,
|
||||||
|
"git.confirmSync": false,
|
||||||
|
"git.suggestSmartCommit": false,
|
||||||
|
"explorer.confirmDragAndDrop": false,
|
||||||
|
"github.copilot.editor.enableAutoCompletions": true,
|
||||||
|
"extensions.ignoreRecommendations": true,
|
||||||
|
"terminal.integrated.defaultProfile.linux": "fish",
|
||||||
|
"workbench.iconTheme": "vscode-icons",
|
||||||
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"terminal.integrated.gpuAcceleration": "off",
|
||||||
|
"update.mode": "none",
|
||||||
|
"workbench.startupEditor": "none",
|
||||||
|
"vsicons.dontShowNewVersionMessage": true,
|
||||||
|
"workbench.colorTheme": "Catppuccin Mocha"
|
||||||
|
}
|
||||||
11
src/.config/alacritty/alacritty.toml
Normal file
11
src/.config/alacritty/alacritty.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[font]
|
||||||
|
size = 12.0
|
||||||
|
|
||||||
|
[terminal.shell]
|
||||||
|
args = ["new-session", "-A", "-s", "general"]
|
||||||
|
program = "/run/current-system/sw/bin/tmux"
|
||||||
|
|
||||||
|
[window]
|
||||||
|
decorations = "None"
|
||||||
|
opacity = 1
|
||||||
|
startup_mode = "Maximized"
|
||||||
1
src/.config/fcitx5/conf/.gitignore
vendored
Normal file
1
src/.config/fcitx5/conf/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
cached_layouts
|
||||||
11
src/.config/fcitx5/conf/mozc.conf
Normal file
11
src/.config/fcitx5/conf/mozc.conf
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Initial Mode
|
||||||
|
InitialMode=Hiragana
|
||||||
|
# Vertical candidate list
|
||||||
|
Vertical=True
|
||||||
|
# Expand Usage (Requires vertical candidate list)
|
||||||
|
ExpandMode="On Focus"
|
||||||
|
# Fix embedded preedit cursor at the beginning of the preedit
|
||||||
|
PreeditCursorPositionAtBeginning=False
|
||||||
|
# Hotkey to expand usage
|
||||||
|
ExpandKey=Control+Alt+H
|
||||||
|
|
||||||
3
src/.config/fcitx5/conf/notifications.conf
Normal file
3
src/.config/fcitx5/conf/notifications.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[HiddenNotifications]
|
||||||
|
0=wayland-diagnose-kde
|
||||||
|
|
||||||
29
src/.config/fcitx5/profile
Normal file
29
src/.config/fcitx5/profile
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
[Groups/0]
|
||||||
|
# Group Name
|
||||||
|
Name=Default
|
||||||
|
# Layout
|
||||||
|
Default Layout=us
|
||||||
|
# Default Input Method
|
||||||
|
DefaultIM=keyboard-tr
|
||||||
|
|
||||||
|
[Groups/0/Items/0]
|
||||||
|
# Name
|
||||||
|
Name=keyboard-us
|
||||||
|
# Layout
|
||||||
|
Layout=
|
||||||
|
|
||||||
|
[Groups/0/Items/1]
|
||||||
|
# Name
|
||||||
|
Name=keyboard-tr
|
||||||
|
# Layout
|
||||||
|
Layout=
|
||||||
|
|
||||||
|
[Groups/0/Items/2]
|
||||||
|
# Name
|
||||||
|
Name=mozc
|
||||||
|
# Layout
|
||||||
|
Layout=
|
||||||
|
|
||||||
|
[GroupOrder]
|
||||||
|
0=Default
|
||||||
|
|
||||||
61
src/.config/fish/config.fish
Normal file
61
src/.config/fish/config.fish
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
if status is-interactive
|
||||||
|
# Commands to run in interactive sessions can go here
|
||||||
|
set -gx PATH /opt/cuda/bin $PATH
|
||||||
|
set -gx LD_LIBRARY_PATH /opt/cuda/lib64 $LD_LIBRARY_PATH
|
||||||
|
set -g fish_greeting
|
||||||
|
set -gx EDITOR "nvim"
|
||||||
|
|
||||||
|
# nnn configuration
|
||||||
|
# H - show hidden files
|
||||||
|
# d - detail view
|
||||||
|
set -x NNN_OPTS Hd
|
||||||
|
|
||||||
|
alias du='du -h'
|
||||||
|
alias df='df -h'
|
||||||
|
alias free='free -h'
|
||||||
|
|
||||||
|
alias l="ls -lah"
|
||||||
|
|
||||||
|
alias ve="python -m venv .venv"
|
||||||
|
alias va="source .venv/bin/activate.fish"
|
||||||
|
alias pipr="pip install -r requirements.txt"
|
||||||
|
alias pipu="pip install --upgrade pip"
|
||||||
|
alias py="ipython"
|
||||||
|
alias music-download="docker run --rm -v /home/osbm/Music:/downloads yt -x --audio-format mp3"
|
||||||
|
alias yt="docker run --rm -v /home/osbm/Videos/youtube:/downloads yt"
|
||||||
|
|
||||||
|
alias c="code ."
|
||||||
|
|
||||||
|
# if $TERM is dumb set it to xterm-256color
|
||||||
|
if test "$TERM" = "dumb"
|
||||||
|
set -x TERM xterm-256color
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# if type -q pyenv
|
||||||
|
# pyenv init - | source
|
||||||
|
# else
|
||||||
|
# echo "pyenv not found"
|
||||||
|
# end
|
||||||
|
|
||||||
|
if type -q zoxide
|
||||||
|
zoxide init fish | source
|
||||||
|
else
|
||||||
|
echo "zoxide not found"
|
||||||
|
end
|
||||||
|
|
||||||
|
if type -q starship
|
||||||
|
starship init fish | source
|
||||||
|
else
|
||||||
|
echo "starship not found"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
# >>> conda initialize >>>
|
||||||
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
|
# if test -f /home/osbm/.pyenv/versions/anaconda3-2023.03/bin/conda
|
||||||
|
# eval /home/osbm/.pyenv/versions/anaconda3-2023.03/bin/conda "shell.fish" "hook" $argv | source
|
||||||
|
# end
|
||||||
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
38
src/.config/fish/fish_variables
Normal file
38
src/.config/fish/fish_variables
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR --export PYENV_ROOT:/home/osbm/\x2epyenv
|
||||||
|
SETUVAR __fish_initialized:3400
|
||||||
|
SETUVAR fish_color_autosuggestion:brblack
|
||||||
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
|
SETUVAR fish_color_command:blue
|
||||||
|
SETUVAR fish_color_comment:red
|
||||||
|
SETUVAR fish_color_cwd:green
|
||||||
|
SETUVAR fish_color_cwd_root:red
|
||||||
|
SETUVAR fish_color_end:green
|
||||||
|
SETUVAR fish_color_error:brred
|
||||||
|
SETUVAR fish_color_escape:brcyan
|
||||||
|
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_host:normal
|
||||||
|
SETUVAR fish_color_host_remote:yellow
|
||||||
|
SETUVAR fish_color_normal:normal
|
||||||
|
SETUVAR fish_color_operator:brcyan
|
||||||
|
SETUVAR fish_color_param:cyan
|
||||||
|
SETUVAR fish_color_quote:yellow
|
||||||
|
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
|
||||||
|
SETUVAR _fish_abbr_za:zoxide\x20add
|
||||||
|
SETUVAR _fish_abbr_zq:zoxide\x20query
|
||||||
|
SETUVAR _fish_abbr_zqi:zoxide\x20query\x20\x2di
|
||||||
|
SETUVAR _fish_abbr_zr:zoxide\x20removeSETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
|
||||||
|
SETUVAR fish_color_status:red
|
||||||
|
SETUVAR fish_color_user:brgreen
|
||||||
|
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||||
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
SETUVAR fish_pager_color_description:yellow\x1e\x2di
|
||||||
|
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||||
|
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||||
|
SETUVAR fish_user_paths:/home/osbm/\x2ecargo/bin
|
||||||
5
src/.config/fish/functions/gitu.fish
Normal file
5
src/.config/fish/functions/gitu.fish
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
function gitu
|
||||||
|
git add --all
|
||||||
|
git commit -m "$argv"
|
||||||
|
git push
|
||||||
|
end
|
||||||
5
src/.config/flameshot/flameshot.ini
Normal file
5
src/.config/flameshot/flameshot.ini
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[General]
|
||||||
|
contrastOpacity=188
|
||||||
|
savePath=/home/osbm/Pictures/screenshots
|
||||||
|
showHelp=false
|
||||||
|
showStartupLaunchMessage=false
|
||||||
6
src/.config/kitty/kitty.conf
Normal file
6
src/.config/kitty/kitty.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
hide_window_decorations yes
|
||||||
|
|
||||||
|
# BEGIN_KITTY_THEME
|
||||||
|
# Dracula
|
||||||
|
include current-theme.conf
|
||||||
|
# END_KITTY_THEME
|
||||||
2
src/.config/mpv/mpv.conf
Normal file
2
src/.config/mpv/mpv.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
keep-open
|
||||||
32
src/.config/nvim/init.lua
Normal file
32
src/.config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.opt.clipboard = 'unnamedplus'
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Sets how neovim will display certain whitespace characters in the editor.
|
||||||
|
-- See `:help 'list'`
|
||||||
|
-- and `:help 'listchars'`
|
||||||
|
vim.opt.list = true
|
||||||
|
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
||||||
|
|
||||||
|
vim.g.python_host_prog = "~/Documents/bin/neovim-venv/bin/python"
|
||||||
|
vim.g.python3_host_prog = "~/Documents/bin/neovim-venv/bin/python"
|
||||||
|
|
||||||
|
require("config.lazy")
|
||||||
|
|
||||||
|
require("mason").setup()
|
||||||
|
require("mason-lspconfig").setup()
|
||||||
|
|
||||||
|
|
||||||
|
local lspconfig = require('lspconfig')
|
||||||
|
lspconfig.pyright.setup {
|
||||||
|
}
|
||||||
|
|
||||||
|
require("nvim-tree").setup()
|
||||||
|
|
||||||
|
if vim.fn.argc(-1) == 0 then
|
||||||
|
vim.cmd("NvimTreeOpen")
|
||||||
|
end
|
||||||
9
src/.config/nvim/lazy-lock.json
Normal file
9
src/.config/nvim/lazy-lock.json
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "b97ee167f594c69656f985f919a00435a7bc7045" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "8e46de9241d3997927af12196bd8faa0ed08c29a" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "5a812abc65d529ea7673059a348814c21d7f87ff" },
|
||||||
|
"nvim-tree.lua": { "branch": "master", "commit": "db8d7ac1f524fc6f808764b29fa695c51e014aa6" },
|
||||||
|
"nvim-treesitter": { "branch": "master", "commit": "337b503688eccb3046547661e4c738e674548fcf" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "87c34abe5d1dc7c1c0a95aaaf888059c614c68ac" }
|
||||||
|
}
|
||||||
59
src/.config/nvim/lua/config/lazy.lua
Normal file
59
src/.config/nvim/lua/config/lazy.lua
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
-- Bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\nPress any key to exit..." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||||
|
-- loading lazy.nvim so that mappings are correct.
|
||||||
|
-- This is also a good place to setup other settings (vim.opt)
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = "\\"
|
||||||
|
|
||||||
|
-- Setup lazy.nvim
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- import your plugins
|
||||||
|
-- { import = "plugins" },
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
"nvim-tree/nvim-web-devicons"
|
||||||
|
},
|
||||||
|
{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
|
||||||
|
-- {
|
||||||
|
-- "folke/noice.nvim",
|
||||||
|
-- event = "VeryLazy",
|
||||||
|
-- opts = {
|
||||||
|
-- -- add any options here
|
||||||
|
-- },
|
||||||
|
-- dependencies = {
|
||||||
|
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
-- "MunifTanjim/nui.nvim",
|
||||||
|
-- -- OPTIONAL:
|
||||||
|
-- -- `nvim-notify` is only needed, if you want to use the notification view.
|
||||||
|
-- -- If not available, we use `mini` as the fallback
|
||||||
|
-- "rcarriga/nvim-notify",
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
},
|
||||||
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
|
-- colorscheme that will be used when installing plugins.
|
||||||
|
install = { colorscheme = { "habamax" } },
|
||||||
|
-- automatically check for plugin updates
|
||||||
|
checker = { enabled = false },
|
||||||
|
})
|
||||||
|
|
||||||
4
src/.config/starship.toml
Normal file
4
src/.config/starship.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
add_newline = false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
83
src/.config/tlrc/config.toml
Normal file
83
src/.config/tlrc/config.toml
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
[cache]
|
||||||
|
dir = "/home/osbm/.cache/tlrc"
|
||||||
|
mirror = "https://github.com/tldr-pages/tldr/releases/latest/download"
|
||||||
|
auto_update = true
|
||||||
|
max_age = 336
|
||||||
|
languages = ["en", "tr", "ja"]
|
||||||
|
|
||||||
|
[output]
|
||||||
|
show_title = false
|
||||||
|
platform_title = false
|
||||||
|
show_hyphens = false
|
||||||
|
example_prefix = "- "
|
||||||
|
compact = true
|
||||||
|
raw_markdown = false
|
||||||
|
|
||||||
|
[indent]
|
||||||
|
title = 2
|
||||||
|
description = 2
|
||||||
|
bullet = 2
|
||||||
|
example = 4
|
||||||
|
|
||||||
|
[style.title]
|
||||||
|
color = "magenta"
|
||||||
|
background = "default"
|
||||||
|
bold = true
|
||||||
|
underline = false
|
||||||
|
italic = false
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.description]
|
||||||
|
color = "magenta"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = false
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.bullet]
|
||||||
|
color = "green"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = false
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.example]
|
||||||
|
color = "cyan"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = false
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.url]
|
||||||
|
color = "red"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = true
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.inline_code]
|
||||||
|
color = "yellow"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = true
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
|
|
||||||
|
[style.placeholder]
|
||||||
|
color = "red"
|
||||||
|
background = "default"
|
||||||
|
bold = false
|
||||||
|
underline = false
|
||||||
|
italic = true
|
||||||
|
dim = false
|
||||||
|
strikethrough = false
|
||||||
48
src/.config/tmux/tmux.conf
Normal file
48
src/.config/tmux/tmux.conf
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'dracula/tmux'
|
||||||
|
|
||||||
|
if-shell '[ -x /run/current-system/sw/bin/fish ]' \
|
||||||
|
'set-option -g default-shell /run/current-system/sw/bin/fish' \
|
||||||
|
'set-option -g default-shell /usr/bin/fish'
|
||||||
|
# set-option -g default-shell /run/current-system/sw/bin/fish
|
||||||
|
|
||||||
|
|
||||||
|
set -g prefix C-s
|
||||||
|
set -g @dracula-plugins "cpu-usage ram-usage gpu-usage battery time"
|
||||||
|
set -g @dracula-show-left-icon hostname
|
||||||
|
set -g @dracula-git-show-current-symbol ✓
|
||||||
|
set -g @dracula-git-no-repo-message "no-git"
|
||||||
|
set -g @dracula-show-timezone false
|
||||||
|
set -g @dracula-ignore-lspci true
|
||||||
|
|
||||||
|
# Start windows and panes at 1, not 0
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# Automatically renumber windows
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# Set new panes to open in current directory
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
bind '"' split-window -c "#{pane_current_path}"
|
||||||
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# from yazi documentation
|
||||||
|
# https://yazi-rs.github.io/docs/image-preview/
|
||||||
|
set -g allow-passthrough on
|
||||||
|
|
||||||
|
set -ga update-environment TERM
|
||||||
|
set -ga update-environment TERM_PROGRAM
|
||||||
|
|
||||||
|
# set-option -a terminal-features 'XXX:RGB'
|
||||||
|
# set-option -a terminal-features 'xterm-kitty:RGB'
|
||||||
|
set-option -a terminal-features 'alacritty:RGB'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# this must be at the bottom for some reason
|
||||||
|
run '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
32
src/.gitconfig
Normal file
32
src/.gitconfig
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
[user]
|
||||||
|
name = osbm
|
||||||
|
email = osmanfbayram@gmail.com
|
||||||
|
[credential]
|
||||||
|
helper = store
|
||||||
|
[core]
|
||||||
|
pager = cat
|
||||||
|
editor = nano
|
||||||
|
excludesFile = ~/.gitignore
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[filter "lfs"]
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
[alias]
|
||||||
|
bb = "!/home/osbm/Documents/dotfiles/scripts/better-git-branch.sh"
|
||||||
|
[column]
|
||||||
|
ui = auto
|
||||||
|
[branch]
|
||||||
|
sort = -committerdate
|
||||||
|
[maintenance]
|
||||||
|
repo = /home/osbm/Pictures/wallpapers
|
||||||
|
repo = /home/osbm/Documents/rerouting
|
||||||
|
repo = /home/osbm/Documents/dotfiles
|
||||||
|
[http]
|
||||||
|
postBuffer = 1048576000
|
||||||
|
[https]
|
||||||
|
postBuffer = 1048576000
|
||||||
2
src/.gitignore
vendored
Normal file
2
src/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
.DS_Store
|
||||||
|
result
|
||||||
5
src/.zprofile
Normal file
5
src/.zprofile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
# eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
# export PATH=~/.npm-global/bin:$PATH
|
||||||
79
src/.zshrc
Normal file
79
src/.zshrc
Normal file
|
|
@ -0,0 +1,79 @@
|
||||||
|
|
||||||
|
# --------------- default manjaro zsh config ---------------
|
||||||
|
# Use powerline
|
||||||
|
USE_POWERLINE="true"
|
||||||
|
# Source manjaro-zsh-configuration
|
||||||
|
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
|
||||||
|
source /usr/share/zsh/manjaro-zsh-config
|
||||||
|
fi
|
||||||
|
# Use manjaro zsh prompt
|
||||||
|
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
|
||||||
|
source /usr/share/zsh/manjaro-zsh-prompt
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --------------- Add aliases ---------------
|
||||||
|
|
||||||
|
alias l="ls -lFha"
|
||||||
|
alias la="ls -a"
|
||||||
|
alias lt="ls --human-readable --size -1 -S --classify"
|
||||||
|
|
||||||
|
alias fastping="ping -c 100 -i 0.2"
|
||||||
|
alias gpuname="nvidia-smi --query-gpu=name --format=csv,noheader"
|
||||||
|
|
||||||
|
|
||||||
|
alias py="ipython"
|
||||||
|
alias ve="python -m venv .venv"
|
||||||
|
alias va="source ./.venv/bin/activate"
|
||||||
|
alias pipu="pip install --upgrade pip"
|
||||||
|
alias pipr="pip install -r requirements.txt"
|
||||||
|
|
||||||
|
# human readable sizes
|
||||||
|
alias free="free -h"
|
||||||
|
alias df="df -h"
|
||||||
|
alias du="du -h"
|
||||||
|
|
||||||
|
alias ..="cd .."
|
||||||
|
alias ...="cd ../.."
|
||||||
|
alias ....="cd ../../.."
|
||||||
|
|
||||||
|
alias docker-stop="docker stop $(docker ps -a -q)"
|
||||||
|
alias docker-rm="docker rm $(docker ps -aq)"
|
||||||
|
alias docker-rmi="docker rmi $(docker images -q)"
|
||||||
|
|
||||||
|
# to set the default editor to nano
|
||||||
|
FCEDIT=nano
|
||||||
|
|
||||||
|
# to stop autocorrection in z shell
|
||||||
|
unsetopt correct
|
||||||
|
|
||||||
|
# --------------- pyenv config ---------------
|
||||||
|
# export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
# eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
sound() {
|
||||||
|
# plays sounds in sequence and waits for them to finish
|
||||||
|
for s in $@; do
|
||||||
|
paplay $s
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# source ~/Documents/dotfiles/src/.config/z.sh
|
||||||
|
|
||||||
|
# export CUDA_HOME=/opt/cuda-11.7
|
||||||
|
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda-11.7/lib64
|
||||||
|
# export PATH=$PATH:$CUDA_HOME/bin
|
||||||
|
|
||||||
|
# pyenv for java
|
||||||
|
# export PATH="$HOME/.jenv/bin:$PATH"
|
||||||
|
# eval "$(jenv init -)"
|
||||||
|
|
||||||
|
# pyenv for node
|
||||||
|
# export NVM_DIR="$HOME/.nvm"
|
||||||
|
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
# go
|
||||||
|
# export GOPATH="$HOME/.go"
|
||||||
|
# export PATH="$PATH:$GOPATH/bin"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue