mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-09-13 19:03:40 +02:00
initial commit
This commit is contained in:
commit
347f373604
6 changed files with 113 additions and 0 deletions
34
.bash_aliases
Normal file
34
.bash_aliases
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# Make dir and cd into it
|
||||||
|
mkcdir () {
|
||||||
|
mkdir -p -- "$1" &&
|
||||||
|
cd -P -- "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
# ls -la
|
||||||
|
alias l="ls -lh"
|
||||||
|
alias ll="ls -lah"
|
||||||
|
# cd +
|
||||||
|
cdl () {
|
||||||
|
cd -P -- "$1" &&
|
||||||
|
ll
|
||||||
|
}
|
||||||
|
|
||||||
|
cdll () {
|
||||||
|
cp -P -- "$1" &&
|
||||||
|
lll
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create standard git WIP commit with timestamps
|
||||||
|
alias gitwip="git commit -m \"wip: $(date +%Y-%m-%dT%H:%M:%S%z) ($(date +%s))\""
|
||||||
|
|
||||||
|
# Remove dropped upstream git branches from remote
|
||||||
|
alias gitclear="git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
|
||||||
|
|
||||||
|
# Generate random 16byte HEX
|
||||||
|
alias rng16="head -c 16 /dev/random | xxd -p"
|
||||||
|
|
||||||
|
# Kill VSCode processes
|
||||||
|
alias killvscode="ps uxa | grep .vscode-server | awk '{print $2}' | xargs kill -9"
|
||||||
|
|
||||||
|
# Change PHP CLI binary
|
||||||
|
alias chphp="sudo update-alternatives --config php"
|
13
.config/git/.gitconfig
Normal file
13
.config/git/.gitconfig
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[user]
|
||||||
|
email = victor@vlw.se
|
||||||
|
name = Victor Westerlund
|
||||||
|
[core]
|
||||||
|
fileMode = false
|
||||||
|
excludesfile = ${HOME}/.gitignore
|
||||||
|
[filter "lfs"]
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
[lfs]
|
||||||
|
contenttype = 0
|
33
.config/git/.gitignore
vendored
Normal file
33
.config/git/.gitignore
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# OS generated files #
|
||||||
|
######################
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
Icon?
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
.directory
|
||||||
|
|
||||||
|
# Tool specific files #
|
||||||
|
#######################
|
||||||
|
# vim
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
# sublime text & textmate
|
||||||
|
*.sublime-*
|
||||||
|
*.stTheme.cache
|
||||||
|
*.tmlanguage.cache
|
||||||
|
*.tmPreferences.cache
|
||||||
|
# Eclipse
|
||||||
|
.settings/*
|
||||||
|
# JetBrains, aka PHPStorm, IntelliJ IDEA
|
||||||
|
.idea/*
|
||||||
|
# NetBeans
|
||||||
|
nbproject/*
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode
|
||||||
|
# Sass preprocessor
|
||||||
|
.sass-cache/
|
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
**
|
||||||
|
!.config/
|
||||||
|
|
||||||
|
# Include configs
|
||||||
|
!.nanorc
|
||||||
|
!.tmux.conf
|
||||||
|
!.config/git/
|
||||||
|
!.config/git/**
|
||||||
|
!.bash_aliases
|
||||||
|
|
||||||
|
# Include this file
|
||||||
|
!.gitignore
|
1
.nanorc
Normal file
1
.nanorc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bind ^Z suspend main
|
20
.tmux.conf
Normal file
20
.tmux.conf
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Enable PS1 colors
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
|
||||||
|
# Resize to smallest attached client
|
||||||
|
#set -g window-size smallest
|
||||||
|
|
||||||
|
# Enable mouse support
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
|
||||||
|
set -g prefix C-space
|
||||||
|
set -g prefix F1
|
||||||
|
#unbind-key C-b
|
||||||
|
bind-key C-space send-prefix
|
||||||
|
bind-key F1 send-prefix
|
||||||
|
|
||||||
|
# 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}"
|
Loading…
Add table
Reference in a new issue