yay, vim, zsh & fstab

This commit is contained in:
Brieuc Dubois 2024-01-27 00:16:37 +01:00
parent ac5f5ca116
commit bfe0a3fecb
11 changed files with 229 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
key key
root/etc/wireguard/*.conf root/etc/wireguard/*.conf
.smb

9
.gitmodules vendored Normal file
View File

@ -0,0 +1,9 @@
[submodule "root/home/bhasher/.oh-my-zsh/custom/themes/powerlevel10k"]
path = root/home/bhasher/.oh-my-zsh/custom/themes/powerlevel10k
url = https://github.com/romkatv/powerlevel10k.git
[submodule "root/home/bhasher/.oh-my-zsh/custom/themes/zsh-autosuggestions"]
path = root/home/bhasher/.oh-my-zsh/custom/themes/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions
[submodule "root/home/bhasher/.oh-my-zsh/custom/themes/zsh-syntax-highlighting"]
path = root/home/bhasher/.oh-my-zsh/custom/themes/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git

14
root/etc/fstab Normal file
View File

@ -0,0 +1,14 @@
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=5E89-61D3 /efi vfat defaults,noatime 0 2
UUID=5cb21f05-2194-4a7b-98e0-20eb572e2a83 / ext4 defaults,noatime 0 1
UUID=21e2b927-a86a-4232-a312-b95087267942 swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
//192.168.1.201/brieuc /mnt/brieuc cifs credentials=/home/bhasher/.smb,uid=bhasher,gid=bhasher 0 0
//192.168.1.201/commun /mnt/commun cifs credentials=/home/bhasher/.smb,uid=bhasher,gid=bhasher 0 0
//192.168.1.201/movies /mnt/movies cifs credentials=/home/bhasher/.smb,uid=bhasher,gid=bhasher 0 0

107
root/etc/pacman.conf Normal file
View File

@ -0,0 +1,107 @@
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
CacheDir = /tmp/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
ILoveCandy
#NoProgressBar
#CheckSpace
VerbosePkgLists
DisableDownloadTimeout
ParallelDownloads = 10
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[endeavouros]
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

View File

@ -0,0 +1,50 @@
{
"aururl": "https://aur.archlinux.org",
"aurrpcurl": "https://aur.archlinux.org/rpc?",
"buildDir": "/tmp/makepkg",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"searchby": "name-desc",
"gitflags": "",
"removemake": "ask",
"sudobin": "sudo",
"sudoflags": "",
"version": "12.2.0",
"requestsplitn": 150,
"completionrefreshtime": 7,
"maxconcurrentdownloads": 1,
"bottomup": true,
"sudoloop": false,
"timeupdate": false,
"devel": false,
"cleanAfter": false,
"keepSrc": false,
"provides": true,
"pgpfetch": true,
"cleanmenu": true,
"diffmenu": true,
"editmenu": false,
"combinedupgrade": true,
"useask": false,
"batchinstall": false,
"singlelineresults": false,
"separatesources": true,
"debug": false,
"rpc": true,
"doubleconfirm": true,
"rebuild": "no"
}

@ -0,0 +1 @@
Subproject commit 307bce24d19fa09d971a0d33c39f3c9fda82924e

@ -0,0 +1 @@
Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5

@ -0,0 +1 @@
Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0

View File

@ -0,0 +1,2 @@
U2FsdGVkX1/n6GStf1DnZcgDaVw0zpSavZK7iQfFZFCy5uk7qHl4rMlyGL7Ew7lJ
ctZZbA72/yMhPK8vXBApnA==

11
root/home/bhasher/.vimrc Normal file
View File

@ -0,0 +1,11 @@
:set number
:set ignorecase
:set incsearch
:set relativenumber
:set autoindent
:syntax on
:set shiftwidth=2
:set smarttab
:set expandtab
:set tabstop=8
:set softtabstop=0

31
root/home/bhasher/.zshrc Normal file
View File

@ -0,0 +1,31 @@
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
zstyle ':omz:update' mode auto
plugins=(git sudo zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
export EDITOR='vim'
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Custom
alias ip="ip -c"
cat() {
for arg in "$@"; do
if [[ $arg == *.md ]]; then
mdcat "$arg"
else
command cat "$arg"
fi
done
}