Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

My dotfiles, originally designed for Ubuntu (WSL 2)

NotificationsYou must be signed in to change notification settings

algono/dotfiles

Repository files navigation

Table of contents

Dependencies

System Packages

Ubuntu

  • autojump(Ubuntu 20.10 or earlier)
  • zoxide(Ubuntu 21.04 or later)
  • neofetch
  • zsh
  • zsh-syntax-highlighting
  • zsh-autosuggestions
  • cargo(Ubuntu 20.04 or earlier)
  • eza(Ubuntu 20.10 or later)
  • bat

Arch

Pacman
AUR

Git repositories

(These areNOT needed forarch users - There are already arch packages for them)

Other Packages

Cargo

  • eza(Ubuntu 20.04 or earlier)

Installation script

Ubuntu

Automatic

Script

Manual
# ---# Ubuntu 20.04 or earliersudo apt install cargocargo install eza# Ubuntu 20.10 or latersudo apt install eza# ---# ---# Ubuntu 20.10 or earliersudo apt install autojump# Ubuntu 21.04 or latersudo apt install zoxide# ---sudo apt install neofetch bat zsh zsh-syntax-highlighting zsh-autosuggestions git clone --depth=1 https://github.com/romkatv/powerlevel10k.git~/powerlevel10k

For theMesloLGS NF font, it's probably better to just follow the instructions from thepowerlevel10k README.

Arch

Automatic

Script

Manual

(these commands useparu to install AUR packages)

sudo pacman -S zoxide neofetch eza bat zsh zsh-syntax-highlighting zsh-autosuggestions zsh-theme-powerlevel10kparu -S ttf-meslo-nerd-font-powerlevel10k

Change shell to ZSH (optional)

chsh$USER -s /bin/zsh

How to clone this repo

Packages needed

This method requiresstow for creating symlinks anded for custom.bashrc support.

Note: Theautomatic scripts for installing dependencies also install these packages.

Ubuntu

sudo apt install stow ed

Arch

sudo pacman -S --needed stow ed

Script

Automatic

Script

Manual

git clone https://github.com/algono/dotfiles~/dotfilesif [-f~/.bashrc ];then mv -f~/.bashrc~/dotfiles/bashelif [-f /etc/skel/.bashrc ];then cp -f /etc/skel/.bashrc~/dotfiles/bashelif uname -r| grep -iq manjaro;then cp~/dotfiles/.bash-presets/.bashrc-manjaro~/dotfiles/bash/.bashrcelse cp~/dotfiles/.bash-presets/.bashrc-wsl~/dotfiles/bash/.bashrcfi[-f~/.zshrc ]&& mv~/.zshrc~/.zshrc.baked~/dotfiles/bash/.bashrc<~/dotfiles/.patches/bashrc-patch.edfind~/dotfiles/* -maxdepth 1 -name".*" -o -type d -prune -printf"%f\n"| xargs /usr/bin/stow -d~/dotfiles -t~

Explanation

Clone repo in dotfiles directory

git clone https://github.com/algono/dotfiles~/dotfiles

If there is a custom.bashrc (either in the user's personal folder or in the system'sskel folder), use it as a base.As a fallback, if the system is detected as manjaro, use the default manjaro.bashrc, and if it wasn't use the default WSL one

if [-f~/.bashrc ];then mv -f~/.bashrc~/dotfiles/bashelif [-f /etc/skel/.bashrc ];then cp -f /etc/skel/.bashrc~/dotfiles/bashelif uname -r| grep -iq manjaro;then cp~/dotfiles/bash/.bashrc-manjaro~/dotfiles/bash/.bashrcelse cp~/dotfiles/bash/.bashrc-wsl~/dotfiles/bash/.bashrcfi

If there is a.zshrc file in the home folder, rename it(stow would fail if it finds a file there)

[-f~/.zshrc ]&& mv~/.zshrc~/.zshrc.bak

Use theed command to apply the relevant changes to the custom.bashrc file (Note: You should backup~/.bashrc first if you have that file, as this method has not been extensively tested and it could break it)

ed~/dotfiles/bash/.bashrc<~/dotfiles/.patches/bashrc.patch.ed

Create symlinks for our dotfiles into the home directory(this command matches all non-hidden directories inside the 'dotfiles' folder)

find~/dotfiles/* -maxdepth 1 -name".*" -o -type d -prune -printf"%f\n"| xargs /usr/bin/stow -d~/dotfiles -t~

The last command didn't work. It told me that some files were going to be overwritten and failed.

If you already have some of the files from this repo, the last command will warn you and won't run.

Stow does not have any option to overwrite files, so you can eithermake backups of these files(example:mv .dotfile .dotfile.bak), or justdelete them, and then re-run the last command.

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp