Compare commits
10 Commits
14fe788e31
...
0659d6ed3a
Author | SHA1 | Date | |
---|---|---|---|
0659d6ed3a | |||
8c836ac3ff | |||
bf080efcf6 | |||
2d58201798 | |||
edbf6720b6 | |||
7d4f253a8c | |||
aa6cf097a5 | |||
3e1526f409 | |||
df7b61b710 | |||
46223561f6 |
19
.brew_programs
Normal file
19
.brew_programs
Normal file
@ -0,0 +1,19 @@
|
||||
bash
|
||||
coreutils
|
||||
dockutil
|
||||
duti
|
||||
fastfetch
|
||||
git
|
||||
gnu-sed
|
||||
htop
|
||||
imagemagick
|
||||
ipcalc
|
||||
neovim
|
||||
newsboat
|
||||
parallel
|
||||
ripgrep
|
||||
rsync
|
||||
tmux
|
||||
tree
|
||||
wget
|
||||
zsh
|
38
.brew_programs_cask
Normal file
38
.brew_programs_cask
Normal file
@ -0,0 +1,38 @@
|
||||
alfred
|
||||
chatterino
|
||||
dbeaver-community
|
||||
displaylink
|
||||
docker
|
||||
firefox@nightly
|
||||
font-hack-nerd-font
|
||||
gimp
|
||||
hiddenbar
|
||||
iterm2
|
||||
jordanbaird-ice
|
||||
karabiner-elements
|
||||
keepassxc
|
||||
macfuse
|
||||
megasync
|
||||
microsoft-auto-update
|
||||
microsoft-teams
|
||||
mongodb-compass
|
||||
mpv
|
||||
mysides
|
||||
obsidian
|
||||
platypus
|
||||
qbittorrent
|
||||
qview
|
||||
scroll-reverser
|
||||
signal
|
||||
skype
|
||||
spotify
|
||||
stats
|
||||
telegram
|
||||
the-unarchiver
|
||||
transfer
|
||||
twingate
|
||||
vlc
|
||||
winbox
|
||||
wine-crossover
|
||||
wireshark
|
||||
zed@preview
|
@ -12,7 +12,7 @@ endif
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Default settings nvim
|
||||
""""""""""""""""""""""""""""""""
|
||||
let g:python3_host_prog = expand('/opt/homebrew/bin/python3.12')
|
||||
let g:python3_host_prog = expand('/opt/homebrew/bin/python3.13')
|
||||
let g:loaded_python_provider = 0
|
||||
let g:python_host_prog = ''
|
||||
set autoindent
|
||||
@ -668,7 +668,7 @@ autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
|
||||
|
||||
" Markdown
|
||||
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
|
||||
autocmd BufWritePre *.md silent! undojoin | Neoformat
|
||||
autocmd BufWritePre *.md silent! undojoin | Neoformat mdformat
|
||||
|
||||
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
|
@ -31,6 +31,7 @@
|
||||
exclude-file = !git update-index --assume-unchanged
|
||||
c = commit --author='Marcin Woźniak <y0rune@aol.com> -s'
|
||||
cw = commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com> -s'
|
||||
retag = "!f() { if [ -z \"$1\" ]; then echo \"No version provided. Skipping git push.\"; else git tag --delete $1 2>/dev/null; git tag -a $1 -m \"Version $1\"; git push --tags -f; git push -f; fi; }; f"
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = "https://github.com/"
|
||||
|
@ -96,7 +96,7 @@ function install_neovim_module_for_python() {
|
||||
$pip install pynvim neovim imps $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_node(){
|
||||
function install_node() {
|
||||
if command_exists npm; then
|
||||
timestamp "Node has been found"
|
||||
else
|
||||
@ -282,16 +282,21 @@ function install_spotifydl() {
|
||||
$pip install spotdl $PIPEXTPRE
|
||||
}
|
||||
|
||||
function update() {
|
||||
if [ -d $CONFIG/fzf ]; then
|
||||
FOLDER="$CONFIG/fzf"
|
||||
cd $FOLDER || err "Folder $FOLDER has been NOT found"
|
||||
git pull -q && timestamp "Pulling the $FOLDER configuration"
|
||||
else
|
||||
FOLDER="$CONFIG/fzf"
|
||||
function install_fzf() {
|
||||
# Install fzf
|
||||
FOLDER="$CONFIG/fzf"
|
||||
mkdir -p $FOLDER
|
||||
|
||||
if [ -d $FOLDER ]; then
|
||||
cd $CONFIG || err "Folder $CONFIG has been NOT found"
|
||||
git clone https://github.com/junegunn/fzf.git $FOLDER && timestamp "Cloning the FZF"
|
||||
git pull -q && timestamp "Pulling the $FOLDER configuration"
|
||||
cd $FOLDER || err "Folder $FOLDER has been NOT found"
|
||||
git pull -q && timestamp "Pulled the $FOLDER configuration"
|
||||
make install
|
||||
fi
|
||||
}
|
||||
|
||||
function install_zsh_addons() {
|
||||
|
||||
if [ ! -d $ZSHFOLDER/aws ]; then
|
||||
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
|
||||
@ -417,7 +422,6 @@ function install_tss_client() {
|
||||
ln -s $TSSFOLDER/tss $TSSLINK
|
||||
chmod +x $TSSLINK
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function install_taplo() {
|
||||
@ -425,11 +429,61 @@ function install_taplo() {
|
||||
$install taplo
|
||||
}
|
||||
|
||||
function install_precommit(){
|
||||
function install_precommit() {
|
||||
# Install pre-commit
|
||||
$pip install pre-commit $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_streamlink() {
|
||||
# Install streamlink
|
||||
$pip install streamlink $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_brew_programs() {
|
||||
# Install brew programs
|
||||
INSTALLED_PROGRAMS=$(brew list)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
||||
brew install $i --force
|
||||
fi
|
||||
done
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
||||
brew install $i --cask --force
|
||||
fi
|
||||
done
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/Spotify.app
|
||||
xattr -r -d com.apple.quarantine /Applications/Stats.app
|
||||
|
||||
xattr -r -d com.apple.quarantine /opt/homebrew/bin/mpv /Applications/mpv.app
|
||||
duti -s io.mpv avi all
|
||||
duti -s io.mpv mkv all
|
||||
duti -s io.mpv mp4 all
|
||||
duti -s io.mpv ts all
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/qView.app
|
||||
duti -s com.interversehq.qView public.jpeg all
|
||||
duti -s com.interversehq.qView public.png all
|
||||
duti -s com.interversehq.qView com.compuserve.gif all
|
||||
duti -s com.interversehq.qView public.tiff all
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/chatterino.app
|
||||
|
||||
brew cleanup --prune=all
|
||||
}
|
||||
|
||||
function install_winbox_old() {
|
||||
curl -o /tmp/winbox64.exe \
|
||||
"$(curl --silent https://mikrotik.com/download | grep -o 'https:\/\/download.*winbox64.exe')"
|
||||
mv -v /tmp/winbox64.exe ~/Applications/winbox.exe
|
||||
xattr -cr ~/Applications/winbox.exe
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start update_pip
|
||||
command_start install_neovim_module_for_python
|
||||
@ -464,7 +518,11 @@ function main() {
|
||||
command_start install_tss_client
|
||||
command_start install_taplo
|
||||
command_start install_precommit
|
||||
command_start update
|
||||
command_start install_streamlink
|
||||
command_start install_fzf
|
||||
command_start install_winbox_old
|
||||
command_start install_zsh_addons
|
||||
command_start install_brew_programs
|
||||
}
|
||||
|
||||
main
|
||||
|
@ -32,10 +32,10 @@ spotdl --user-auth --keep-alive \
|
||||
--yt-dlp-args no-check-certificates
|
||||
|
||||
# Sync to Jellyfin
|
||||
rsync -h --progress --recursive \
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
|
||||
|
||||
rsync -h --progress --recursive \
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_FAV/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Fav
|
||||
|
||||
# Generate playlist
|
||||
|
2
.zshrc
2
.zshrc
@ -77,6 +77,7 @@ export PATH=$HOME/go/bin:$PATH
|
||||
export PATH=$HOME/golang/bin:$PATH
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=$HOME/node_modules/.bin:$PATH
|
||||
export PATH=$CONFIG/fzf/bin:$PATH
|
||||
export GOPATH=$HOME/golang
|
||||
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
@ -115,6 +116,7 @@ alias feh="feh --edit --scale-down"
|
||||
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
|
||||
alias mylaptop-components="inxi -Fxz"
|
||||
alias update_time="sudo ntpdate -b -u vega.cbk.poznan.pl"
|
||||
alias dn='LC_TIME=C /bin/date "+%Y%m%d%H%M%S"'
|
||||
|
||||
# Alias and Export for Mac
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user