new stuffz
This commit is contained in:
parent
b0cb07c901
commit
eebe86231d
57
.aliases.ps1
Executable file
57
.aliases.ps1
Executable file
@ -0,0 +1,57 @@
|
||||
#######################################
|
||||
############ don't edit lol ###########
|
||||
#######################################
|
||||
|
||||
function ealias {
|
||||
Start-Process -FilePath "$npp" -ArgumentList `"$ps_profile`" -Verb RunAs
|
||||
}
|
||||
function projects {
|
||||
Set-Location $env:userprofile\projs
|
||||
}
|
||||
|
||||
|
||||
function projs {
|
||||
projects
|
||||
}
|
||||
function dilf {
|
||||
Set-Location $_dilf
|
||||
}
|
||||
function .. {
|
||||
Set-Location ..
|
||||
}
|
||||
function .... {
|
||||
Set-Location ../..
|
||||
}
|
||||
function no {
|
||||
node --help
|
||||
}
|
||||
function twrp {
|
||||
adb reboot bootloader; fastboot boot C:\Users\Corinthe\androidstuffz\twrp.img
|
||||
}
|
||||
function baksmalibasefunc { java -jar "C:\Users\Corinthe\ApkProjects\baksmali.jar" $args }
|
||||
New-Alias -Name baksmali -Value baksmalibasefunc -Force -Option AllScope
|
||||
|
||||
function zipcmd { & "C:\Program Files\zippy\zip.exe" $args }
|
||||
New-Alias -Name zip -Value zipcmd -Force -Option AllScope
|
||||
|
||||
function uberapk { java -jar C:\Users\Corinthe\.apklab\uber-apk-signer-1.2.1.jar -a $args --allowResign --overwrite }
|
||||
New-Alias -Name signapk -Value uberapk -Force -Option AllScope
|
||||
|
||||
function trueapksigner { C:\Users\Corinthe\asdk\build-tools\32.0.0\apksigner.bat $args }
|
||||
New-Alias -Name apksigner -Value trueapksigner -Force -Option AllScope
|
||||
|
||||
function nanoo { & C:\cygwin\bin\nano.exe $args }
|
||||
New-Alias -Name nano -Value nanoo -Force -Option AllScope
|
||||
function gitbash { & "C:\Program Files\Git\git-bash.exe" $args }
|
||||
New-Alias -Name gbash -Value gitbash -Force -Option AllScope
|
||||
|
||||
function newCmdWin { cmd /c start cmd /b /k $args }
|
||||
New-Alias -Name "new-command" -Value newCmdWin -Force -Option AllScope
|
||||
|
||||
function cyg { C:\cygwin\Cygwin.bat $args }
|
||||
New-Alias -Name cygwin -Value cyg -Force -Option AllScope
|
||||
|
||||
|
||||
function rtmux { /cygwin/bin/script.exe -c "export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; /bin/tmux -f ~/.dotfiles/tmux/tmux.conf" /dev/null $args }
|
||||
New-Alias -Name tmux -Value rtmux -Force -Option AllScope
|
||||
# -f ~/.dotfiles/tmux/tmux.conf
|
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitmodules
vendored
Normal file → Executable file
0
.gitmodules
vendored
Normal file → Executable file
1
.poshrc.ps1
Executable file
1
.poshrc.ps1
Executable file
@ -0,0 +1 @@
|
||||
(@(& 'C:/Users/Corinthe/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='C:\Users\Corinthe\tabletsTurquoise.omp.json' --print) -join "`n") | Invoke-Expression
|
27
.psrc.ps1
Executable file
27
.psrc.ps1
Executable file
@ -0,0 +1,27 @@
|
||||
$aliasFilePath="$env:USERPROFILE\.dotfiles\.aliases.ps1"
|
||||
function New-CommandAlias {
|
||||
param(
|
||||
[parameter(Mandatory=$true)]$Name,
|
||||
[parameter(Mandatory=$true)]$Cmd,
|
||||
[parameter(Mandatory=$true)]$Alias
|
||||
)
|
||||
|
||||
$functionFormat = "function $Name { $Cmd `$args }
|
||||
New-Alias -Name $Alias -Value $Name -Force -Option AllScope"
|
||||
|
||||
$newLine = [Environment]::NewLine
|
||||
Add-Content -Path $aliasFilePath -Value "$newLine$functionFormat"
|
||||
. $aliasFilePath
|
||||
}
|
||||
|
||||
. $aliasFilePath
|
||||
function bg() {Start-Process -NoNewWindow @args}
|
||||
|
||||
$repo="$env:USERPROFILE\Desktop\ART\@tablets-stuff"
|
||||
. $env:USERPROFILE\.completion.ps1
|
||||
# function Prompt {
|
||||
# $date=$(Get-Date -Format "dddd, dd/MM/yyyy hh:mm:ss.FFF tt")
|
||||
# Write-Host ("$date | $(Get-Location) `n▻") -ForegroundColor 3 -NoNewline
|
||||
# return " "
|
||||
# }
|
||||
. $env:USERPROFILE\.dotfiles\.poshrc.ps1
|
0
.tmux/.tmux-powerlinerc
Normal file → Executable file
0
.tmux/.tmux-powerlinerc
Normal file → Executable file
0
htop/htoprc
Normal file → Executable file
0
htop/htoprc
Normal file → Executable file
0
micro/buffers/history
Normal file → Executable file
0
micro/buffers/history
Normal file → Executable file
0
micro/settings.json
Normal file → Executable file
0
micro/settings.json
Normal file → Executable file
0
neofetch/config.conf
Normal file → Executable file
0
neofetch/config.conf
Normal file → Executable file
0
tmux-powerline/config.sh
Normal file → Executable file
0
tmux-powerline/config.sh
Normal file → Executable file
4
tmux-powerline/themes/tablet.sh
Normal file → Executable file
4
tmux-powerline/themes/tablet.sh
Normal file → Executable file
@ -83,10 +83,10 @@ if [ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]; then
|
||||
|
||||
# "ifstat 30 255" \
|
||||
#"ifstat_sys 30 255" \
|
||||
"cpu #cb00f3 0" \
|
||||
"cpu #9318ff 255" \
|
||||
# "battery #cb46ff 255" \
|
||||
#"wan_ip #9318ff 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \
|
||||
"pwd #1289FF 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \
|
||||
"pwd #1289FF 0 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \
|
||||
"now_playing #00e7e3 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} #00e7e3 #333333 default" \
|
||||
#"lan_ip #affffe 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} '#000000' '#000000'" \
|
||||
# Metallica - Inamorata
|
||||
|
0
tmux.conf.not
Normal file → Executable file
0
tmux.conf.not
Normal file → Executable file
45
tmux/tmux.conf
Normal file → Executable file
45
tmux/tmux.conf
Normal file → Executable file
@ -1,3 +1,4 @@
|
||||
#set -g default-terminal "screen-256color"
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
@ -8,38 +9,50 @@ bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
#set-option -g autom
|
||||
|
||||
bind r source-file ~/.dotfiles/tmux/tmux.conf
|
||||
set-window-option -g clock-mode-style 12
|
||||
set-option clock-mode-colour "#00e7e3"
|
||||
set -g window-status-current-format ''
|
||||
|
||||
set -g status-bg "#232323"
|
||||
#set-option -g status-fg "#000011"
|
||||
set -g pane-border-status top
|
||||
set -g message-style 'bg=#00d9db,fg=#000011'
|
||||
set-window-option monitor-activity on
|
||||
set -g base-index 1
|
||||
set -g mouse on
|
||||
|
||||
set -g pane-border-style 'fg=#affffe'
|
||||
set -g pane-active-border-style 'fg=#00e7e3'
|
||||
set -g pane-border-lines "single"
|
||||
|
||||
set -g visual-activity on
|
||||
set -g visual-bell on
|
||||
set -g mode-keys vi
|
||||
|
||||
### powerline ###
|
||||
|
||||
set-option status-left-length 140
|
||||
set-option status-right-length 75
|
||||
run-shell 'alias powerline-config=~/.dotfiles/powerline-bin/bin/powerline-config'
|
||||
run-shell '~/.dotfiles/powerline-bin/bin/powerline-daemon --replace'
|
||||
#run-shell ~/.dotfiles/powerline/bin/powerline-daemon -q
|
||||
set -g window-status-current-format ""
|
||||
set-environment -g POWERLINE_CONFIG_COMMAND ~/.dotfiles/powerline-bin/bin/powerline-config
|
||||
source ~/.dotfiles/powerline-bin/powerline/bindings/tmux/powerline.conf
|
||||
if-shell '[ ! -z $PREFIX ]' {
|
||||
run-shell 'ln -sf ~/.dotfiles/powerline/powerline/scripts/powerline $PREFIX/bin'
|
||||
run-shell 'ln -sf ~/.dotfiles/powerline/powerline/scripts/powerline-daemon $PREFIX/bin'
|
||||
}
|
||||
set-option clock-mode-colour "#00e7e3"
|
||||
set -g status-bg "#262626"
|
||||
#set-option -g status-fg "#000011"
|
||||
set -g status-style "fg=#ffffff,bg=#262626"
|
||||
set -g pane-border-status top
|
||||
set -g message-style 'bg=#00d9db,fg=#262626'
|
||||
set -g pane-border-style 'fg=#affffe'
|
||||
set -g pane-active-border-style 'fg=#00e7e3'
|
||||
set -g menu-selected-style 'fg=#000000,bg=#00d9db'
|
||||
set -g mode-style 'fg=#000000,bg=#00d9db'
|
||||
|
||||
### plugins ###
|
||||
|
||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH ~/.dotfiles/.tmux/plugins
|
||||
set-environment -g TMPDIR $PREFIX/tmp
|
||||
run-shell 'ln -s ~/.dotfiles/powerline/scripts/powerline $PREFIX/bin'
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'erikw/tmux-powerline'
|
||||
set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
||||
#set -g @plugin 'erikw/tmux-powerline'
|
||||
#set -g @plugin 'git@git.tablet.sh:the-btfash-foundation/tmux-mem-cpu-load'
|
||||
# set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
||||
|
||||
# Other examples:
|
||||
|
Loading…
Reference in New Issue
Block a user