first commit

This commit is contained in:
AgarimOS 2021-09-15 21:02:58 +02:00
parent 0797235ef9
commit c4a5b9686f
125 changed files with 11037 additions and 12 deletions

71
.bashrc
View File

@ -1,9 +1,12 @@
[[ $- == *i* ]] &&
source "$HOME/.local/share/blesh/ble.sh" --attach=none
# Path to your oh-my-bash installation.
export OSH=/home/jose/.oh-my-bash
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="demula"
OSH_THEME="mairan"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@ -212,7 +215,6 @@ alias restricted="void && grep -rl '^restricted=' srcpkgs/"
alias services="sudo sv status /var/service/*"
alias non-free="xbps-query -Mi --repo=https://alpha.de.repo.voidlinux.org/current/nonfree -s \*"
alias doit="sce && topgrade && clean && hblock && ytfzfi && clear"
alias sce="cd ~/ && source .bashrc"
alias void="cd /home/jose/Plantillas/void-linux/void-packages"
alias mklive="cd /home/jose/Plantillas/void-linux/void-mklive"
alias ignpa="echo "ignorepkg=pulseaudio" | sudo tee -a /etc/xbps.d/XX-ignore.conf"
@ -256,6 +258,28 @@ alias covbe="curl -L covid19.trackercli.com/be"
alias covpt="curl -L covid19.trackercli.com/pt"
alias covnl="curl -L covid19.trackercli.com/nl"
alias covch="curl -L covid19.trackercli.com/ch"
alias covus="curl -L covid19.trackercli.com/us"
alias covsk="curl -L covid19.trackercli.com/sk"
alias covcz="curl -L covid19.trackercli.com/cz"
alias covpl="curl -L covid19.trackercli.com/pl"
alias covhr="curl -L covid19.trackercli.com/hr"
alias covrs="curl -L covid19.trackercli.com/rs"
# Alias's for multiple directory listing commands
alias la='ls -Alh' # show hidden files
alias ls='ls -aFh --color=always' # add colors and file type extensions
alias lx='ls -lXBh' # sort by extension
alias lk='ls -lSrh' # sort by size
alias lc='ls -lcrh' # sort by change time
alias lu='ls -lurh' # sort by access time
alias lr='ls -lRh' # recursive ls
alias lt='ls -ltrh' # sort by date
alias lm='ls -alh |more' # pipe through 'more'
alias lw='ls -xAh' # wide listing format
alias ll='ls -Fls' # long listing format
alias labc='ls -lap' #alphabetical sort
alias lf="ls -l | egrep -v '^d'" # files only
alias ldir="ls -l | egrep '^d'" # directories only
# I am lazy
alias ..='cd ..'
@ -271,8 +295,7 @@ alias icons="cd /usr/share/icons"
alias trash="sudo rm -rf ~/.local/share/Trash/*"
alias npmu="sudo npm upgrade -g npm"
alias nzsh=" cd ~ && nano .bashrc"
alias chsh="chsh -s /bin/zsh"
alias sce="src"
alias sce=" cd ~ && source .bashrc"
alias del="rm -rf"
alias ft="fc-cache -f -v"
alias kzsh="kate ~/.bashrc"
@ -288,18 +311,41 @@ alias lc="lsd -lA"
alias ext="extract"
alias vi="vim"
alias mount='mount |column -t'
alias chsh="chsh -s /bin/bash"
alias ext="extract"
alias userlist="cut -d: -f1 /etc/passwd"
alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep --color=never -E "state|to\ full|percentage"'
alias inf="kinfocenter"
alias ext="ex"
alias cl='cal'
alias who='whoami'
alias cc='sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"' # Clear System Cache
alias spt='speedtest-cli'
alias wifi="wirelessNetworksInRange"
#Alias Kitty
alias icat="kitty +kitten icat"
alias d="kitty +kitten diff"
alias clip="kitty +kitten clipboard"
#Alias inxi
#Inxi
alias mac="inxi -zv8"
alias weather="inxi -wxxx"
alias machine="inxi -Fxxxrza"
# Kitty
alias icat="kitty +kitten icat"
alias d="kitty +kitten diff"
alias clip="kitty +kitten clipboard"
alias kittyc="nano ~/.config/kitty/kitty.conf"
alias kittys="nano ~/.config/kitty/settings.conf"
alias kittyf="nano ~/.config/kitty/font.conf"
alias kittyk="nano ~/.config/kitty/keybindings.conf"
alias kittyb="nano ~/.config/kitty/bell.conf"
alias kittycu="nano ~/.config/kitty/cursor.conf"
alias kittym="nano ~/.config/kitty/mouse.conf"
alias kittyp="nano ~/.config/kitty/performance.conf"
alias kittysc="nano ~/.config/kitty/scrollback.conf"
alias kittyt="nano ~/.config/kitty/tab.conf"
alias kittyw="nano ~/.config/kitty/window.conf"
#Ricing
alias nerdfetch="curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/master/nerdfetch | sh"
alias pipesa="cpipes -p30 -r1"
@ -307,6 +353,7 @@ alias pipesb="cpipes -p100 -r0 -i1"
alias pman="colorscript -e 30"
alias skull="colorscript -e 33"
alias spaceinvaders="colorscript -e 38"
alias clock="tty-clock -c"
#Ytfzf
alias showme="ytfzf -t"
@ -432,5 +479,7 @@ alias psf="ps auxfww"
#given a PID, intercept the stdout and stderr
alias intercept="sudo strace -ff -e trace=write -e write=1,2 -p"
wal -n -q -i /home/jose/Imágenes/walls/wall12.jpg
#curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/master/nerdfetch | sh
nerdfetch
[[ ${BLE_VERSION-} ]] && ble-attach

1
.oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit 735808f48d54aabce540f6c90294e21118104cf4

View File

@ -0,0 +1,71 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#9A348E",
"leading_diamond": "\uE0B6",
"trailing_diamond": "",
"properties": {
"prefix": "",
"display_host": false
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#DA627D",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#FCA17D",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": false,
"branch_icon": "",
"display_status": false,
"prefix": " \u279C (",
"postfix": ") "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#86BBD8",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#33658A",
"properties": {
"prefix": " \u2665 ",
"time_format": "15:04"
}
}
]
}
]
}

View File

@ -0,0 +1,63 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ffe9aa"
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ffffff"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#91ddff",
"properties" : {
"home_icon": "\uF7DB",
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "agnoster"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ff8080"
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,55 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "right",
"vertical_offset": -1,
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "#007ACC",
"properties": {
"time_format": "15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ffffff"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#91ddff",
"properties" : {
"home_icon": "\uF7DB",
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "agnoster"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,48 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#61AFEF",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B0"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#C678DD",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "python",
"style": "diamond",
"foreground": "#ffffff",
"background": "#FF6471",
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"properties": {
"prefix": "<transparent>\uE0B0 </>"
}
}
]
}
],
"final_space": true
}

55
.poshthemes/avit.omp.json Normal file
View File

@ -0,0 +1,55 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#C2C206"
},
{
"type": "root",
"style": "plain",
"foreground": "#B5B50D"
},
{
"type": "exit",
"style": "plain",
"foreground": "#C94A16",
"properties": {
"prefix": "x"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#007ACC",
"properties": {
"prefix": "",
"text": "\uE602"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,131 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.Host}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#FFEB3B",
"background": "#a313a8",
"properties": {
"root_icon": "⚡"
}
},
{
"type": "os",
"style": "plain",
"foreground": "#ffffff",
"background": "transparent"
},
{
"type": "path",
"style": "diamond",
"leading_diamond": "<transparent,#01579B>\uE0B0</>",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#01579B",
"properties": {
"home_icon": "\uF7DB",
"folder_icon": "\uF6D7",
"folder_separator_icon": "<transparent> \uE0BD </>",
"style": "agnoster_short"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#00C853",
"properties": {
"display_stash_count": true,
"staging_color": "#FF6F00",
"status_colors_enabled": true,
"local_changes_color": "#FFEB3B",
"ahead_and_behind_color": "#FFCC80",
"behind_color": "#B388FF",
"ahead_color": "#B388FF"
}
},
{
"type": "executiontime",
"style": "diamond",
"leading_diamond": "<transparent,#49404f>\uE0B0</>",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#49404f",
"properties": {
"threshold": 0,
"style": "dallas",
"postfix": "s "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#910000",
"properties": {
"prefix": "<transparent> \uF12A</> "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "session",
"style": "diamond",
"trailing_diamond": "",
"leading_diamond": "\uE0C5",
"foreground": "#43CCEA",
"background": "#29315A",
"properties": {
"postfix": "",
"prefix": " ",
"user_info_separator": "<transparent> / </>"
}
},
{
"type": "time",
"style": "plain",
"foreground": "#3EC669",
"background": "#29315A",
"properties": {
"time_format": "15:04:05",
"prefix": "<transparent> \uE0BA\uE0BC </>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#ff0000",
"display_exit_code": false
}
}
]
}
]
}

View File

@ -0,0 +1,127 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"postfix": " \uE0B1",
"macos": "mac"
},
"leading_diamond": "\uE0c5",
"trailing_diamond": "\uE0B0"
},
{
"type": "session",
"style": "powerline",
"foreground": "#26C6DA",
"background": "#546E7A",
"powerline_symbol": "\uE0B0"
},
{
"type": "battery",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#a2beef",
"properties": {
"battery_icon": "\f583",
"color_background": true,
"charged_color": "#0476d0",
"charging_color": "#00D100",
"discharging_color": "#FFCD58",
"postfix": "\uF295 \uf583 "
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#14c2dd",
"properties": {
"prefix": " \uE5FF ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#a2c4e0",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#ffff66"
},
{
"type": "kubectl",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": " \uFD31 ",
"template": "{{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}}"
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#007800",
"leading_diamond": "<transparent, #007800>\uE0B0</>",
"trailing_diamond": "\uE0b0",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": " \ufc8d"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#007ACC",
"properties": {
"prefix": "",
"text": "\u279C"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,193 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "session",
"style": "diamond",
"trailing_diamond": "\uE0B4 ",
"leading_diamond": "\uE0B6",
"foreground": "#E64747",
"background": "#29315A",
"properties": {
"display_host": false,
"postfix": "",
"prefix": ""
}
},
{
"type": "path",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B6",
"foreground": "#3EC669",
"background": "#29315A",
"properties": {
"prefix": "\uE5FF ",
"postfix": "",
"style": "folder"
}
},
{
"type": "git",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#43CCEA",
"background": "#29315A",
"properties": {
"prefix": "",
"postfix": "",
"display_status_detail": false,
"branch_icon": ""
}
},
{
"type": "python",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E4F34A",
"background": "#29315A",
"properties": {
"prefix": "\uE235",
"postfix": "",
"display_version": false
}
},
{
"type": "go",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#7FD5EA",
"background": "#29315A",
"properties": {
"prefix": "\uFCD1",
"postfix": "",
"display_version": false
}
},
{
"type": "node",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#42E66C",
"background": "#29315A",
"properties": {
"prefix": "\uE718",
"postfix": "",
"display_version": false
}
},
{
"type": "ruby",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E64747",
"background": "#29315A",
"properties": {
"prefix": "\uE791",
"postfix": "",
"display_version": false
}
},
{
"type": "java",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E64747",
"background": "#29315A",
"properties": {
"prefix": "\uE738",
"postfix": "",
"display_version": false
}
},
{
"type": "julia",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#9B6BDF",
"background": "#29315A",
"properties": {
"prefix": "\uE624",
"display_version": false
}
},
{
"type": "battery",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#9B6BDF",
"background": "#29315A",
"properties": {
"battery_icon": "",
"discharging_icon": "\u21E3 ",
"charging_icon": "\u21E1 ",
"charged_icon": "\u0095 ",
"color_background": false,
"charged_color": "#4caf50",
"charging_color": "#40c4ff",
"discharging_color": "#ff5722",
"prefix": "",
"postfix": "",
"display_charging": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "executiontime",
"style": "diamond",
"trailing_diamond": "\uE0B4 ",
"leading_diamond": "\uE0B6",
"foreground": "#AEA4BF",
"background": "#29315A",
"properties": {
"threshold": 150,
"style": "austin",
"prefix": "",
"postfix": ""
}
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B6",
"foreground": "#7FD5EA",
"background": "#29315A",
"properties": {
"prefix": "",
"text": "\u276F",
"postfix": ""
}
},
{
"type":"text",
"style": "plain",
"foreground": "transparent",
"properties": {
"prefix": "",
"text": " ",
"postfix": ""
}
}
]
}
]
}

View File

@ -0,0 +1,157 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "path",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": "\uE0B6",
"foreground": "#3EC669",
"background": "#424242",
"properties": {
"prefix": "\uE5FF ",
"postfix": "",
"style": "folder"
}
},
{
"type": "git",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#43CCEA",
"background": "#424242",
"properties": {
"prefix": "",
"postfix": "",
"display_status_detail": false,
"branch_icon": ""
}
},
{
"type": "python",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E4F34A",
"background": "#424242",
"properties": {
"prefix": "\uE235",
"postfix": "",
"display_version": false
}
},
{
"type": "go",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#7FD5EA",
"background": "#424242",
"properties": {
"prefix": "\uFCD1",
"postfix": "",
"display_version": false
}
},
{
"type": "node",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#42E66C",
"background": "#424242",
"properties": {
"prefix": "\uE718",
"postfix": "",
"display_version": false
}
},
{
"type": "ruby",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E64747",
"background": "#424242",
"properties": {
"prefix": "\uE791",
"postfix": "",
"display_version": false
}
},
{
"type": "java",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#E64747",
"background": "#424242",
"properties": {
"prefix": "\uE738",
"postfix": "",
"display_version": false
}
},
{
"type": "julia",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#9B6BDF",
"background": "#424242",
"properties": {
"prefix": "\uE624",
"postfix": "",
"display_version": false
}
},
{
"type": "battery",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"leading_diamond": " \uE0B6",
"foreground": "#9B6BDF",
"background": "#424242",
"properties": {
"battery_icon": "",
"discharging_icon": "\u21E3 ",
"charging_icon": "\u21E1 ",
"charged_icon": "\u25CF ",
"color_background": false,
"charged_color": "#4caf50",
"charging_color": "#40c4ff",
"discharging_color": "#ff5722",
"prefix": "",
"postfix": "",
"display_charging": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "diamond",
"trailing_diamond": "\uE0B4 ",
"leading_diamond": "\uE0B6",
"foreground": "#9B6BDF",
"background": "#424242",
"properties": {
"display_host": false,
"postfix": " \u276F",
"prefix": ""
}
}
]
}
]
}

66
.poshthemes/cert.omp.json Normal file
View File

@ -0,0 +1,66 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks":[
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0C6",
"background": "#E36464",
"foreground": "#fff",
"properties": {
"user_info_separator": "",
"display_host": false,
"prefix": "",
"postfix": " "
}
},
{
"type":"path",
"style": "diamond",
"leading_diamond": "\uE0C7",
"trailing_diamond": "\uE0C6",
"background": "green",
"foreground": "#fff",
"properties": {
"style": "folder",
"prefix": " ",
"postfix": " "
}
},
{
"type": "git",
"style": "diamond",
"leading_diamond": "\uE0C7",
"trailing_diamond": "\uE0C6",
"background": "lightCyan",
"foreground": "#fff",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": " git(",
"postfix": ") "
}
},
{
"type": "time",
"style": "diamond",
"leading_diamond": "\uE0C7",
"trailing_diamond": "\uE0C6",
"foreground": "#fff",
"background": "lightMagenta",
"properties": {
"time_format": "15:04",
"prefix": " ",
"postfix": " "
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,67 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#07585c",
"leading_diamond": "\uE0B6"
},
{
"type": "path",
"style": "plain",
"foreground": "#ffffff",
"background": "#3e9022",
"properties": {
"prefix": " \uE5FF ",
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#ffffff",
"background": "#de076f",
"properties": {
"display_upstream_icon": true,
"branch_icon": ""
}
},
{
"type": "spotify",
"style": "plain",
"foreground": "#ffffff",
"background": "#491545",
"properties": {
"prefix": "\uF9C6 ",
"playing_icon": "\uE602 ",
"paused_icon": "\uF8E3 ",
"stopped_icon": "\uF04D ",
"track_separator" : " - "
}
},
{
"type": "exit",
"style": "diamond",
"trailing_diamond": "\uE0B4",
"foreground": "#ffffff",
"background": "#491515",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": " \uF7d4"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,67 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"user_info_separator": "",
"display_host": false,
"prefix": "<#CB4B16>┏[</>",
"postfix": "<#CB4B16>]</>"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "<#CB4B16>[</>",
"postfix": "<#CB4B16>]</>"
}
},
{
"type": "root",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "<#CB4B16>[</>",
"postfix": "<#CB4B16>]</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "<#CB4B16>[x</>",
"postfix": "<#CB4B16>]</>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "path",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"style": "full",
"prefix": "<#CB4B16>┖[</>",
"postfix": "<#CB4B16>]></>"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,63 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "#E5C07B",
"properties": {
"time_format": "15:04:05",
"prefix": "[",
"postfix": "]"
}
},
{
"type": "root",
"style": "plain",
"foreground": "#B5B50D"
},
{
"type": "path",
"style": "plain",
"foreground": "#61AFEF",
"properties": {
"style": "agnoster",
"postfix": " on"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#F3C267",
"properties": {
"display_status": true,
"branch_identical_icon": "\uF14A",
"branch_gone_icon": "\u274E"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#C94A16",
"properties": {
"prefix": "x"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#E06C75",
"properties": {
"prefix": "",
"text": " \u276F"
}
}
]
}
],
"final_space": true
}

61
.poshthemes/fish.omp.json Normal file
View File

@ -0,0 +1,61 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"postfix": ""
}
},
{
"type": "root",
"style": "plain",
"foreground": "#100e23"
},
{
"type": "session",
"style": "plain",
"foreground": "#ffffff"
},
{
"type": "path",
"style": "plain",
"foreground": "#ffffff",
"background": "#007ACC",
"properties": {
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "full",
"prefix": "<transparent>\uE0B0</> ",
"postfix": " "
}
},
{
"type": "git",
"style": "plain",
"foreground": "#ffffff",
"background": "#007ACC",
"properties": {
"prefix": "<#ffffff>\uE0B1</> ",
"postfix": " "
}
},
{
"type": "text",
"style": "plain",
"foreground": "#007ACC",
"properties": {
"prefix": "",
"text": "\uE0B0"
}
}
]
}
]
}

107
.poshthemes/gmay.omp.json Normal file
View File

@ -0,0 +1,107 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#ffffff",
"background": "#3A86FF",
"leading_diamond": "\uE0B6"
},
{
"type": "session",
"style": "powerline",
"foreground": "#ffffff",
"background": "#3A86FF"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ff479c",
"properties": {
"prefix": " \uE5FF ",
"style": "full"
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#4caf50",
"properties": {
"time_format": "2006-01-02 15:04:05",
"prefix": ""
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#fffb38",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#ffff66"
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#2e9599",
"leading_diamond": "<transparent, #2e9599>\uE0B0</>",
"trailing_diamond": "\uE0B4",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": " \uFC0C"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"properties": {
"prefix": "",
"text": "\uF7C6"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,76 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#7E46B6",
"properties": {
"display_host": false,
"prefix": ""
}
},
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"text": "in"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#87FF00",
"properties": {
"style": "full",
"prefix": ""
}
},
{
"type": "git",
"style": "plain",
"foreground": "#5FD7FF",
"properties": {
"prefix": "<#ffffff>on</> ",
"branch_icon": "",
"branch_ahead_icon": "",
"branch_behind_icon": "",
"branch_gone_icon": "",
"branch_identical_icon": "",
"commit_icon": "",
"tag_icon": "",
"merge_icon": "",
"rebase_icon": "",
"cherry_pick_icon": "",
"revert_icon": "",
"working_color": "#D75F00",
"staging_color": "#87FF00",
"local_working_icon": " ●",
"local_staged_icon": " ●",
"status_separator_icon": "",
"display_status": true,
"display_status_detail": false,
"display_branch_status": false,
"display_stash_count": false
}
},
{
"type": "text",
"style": "plain",
"foreground": "#D75F00",
"properties": {
"text": "λ",
"prefix": ""
}
}
]
}
],
"final_space": false
}

View File

@ -0,0 +1,93 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#FFFFFF",
"properties": {
"user_info_separator": " <#ffffff>in</> ",
"prefix": "<#0377C8># </>",
"user_color": "#0377C8",
"host_color": "#4A9207"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#0973C0",
"properties": {
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#B8B80A",
"properties": {
"prefix": "<#ffffff>on git:</>"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "[",
"postfix": "]"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#CECE04",
"properties": {
"prefix": ""
}
},
{
"type": "python",
"style": "plain",
"foreground": "#100e23",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#CB4B16"
},
{
"type": "text",
"style": "plain",
"foreground": "#CC4B16",
"properties": {
"prefix": "",
"text": "\u279C"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,63 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "yellow",
"properties": {
"root_icon": ""
}
},
{
"type": "path",
"style": "diamond",
"foreground": "black",
"background": "lightBlue",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"style": "mixed"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "black",
"background": "green",
"properties": {
"display_status_detail": true,
"branch_icon": " ",
"branch_identical_icon": "≡",
"branch_ahead_icon": "↑",
"branch_behind_icon": "↓",
"branch_gone": "≢",
"local_working_icon": "",
"local_staged_icon": "",
"stash_count_icon": "",
"commit_icon": "▷ ",
"tag_icon": "▶ ",
"rebase_icon": "Ɫ ",
"cherry_pick_icon": "✓ ",
"merge_icon": "◴ ",
"no_commits_icon": "[no commits]",
"status_separator_icon": " │",
"status_colors_enabled": true,
"color_background": true,
"local_changes_color": "yellow"
}
}
]
}
]
}

View File

@ -0,0 +1,98 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#FFE082",
"properties": {
"user_info_separator": "",
"display_host": false,
"prefix": "@",
"postfix": " \u279C"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"style": "agnoster_short"
}
},
{
"type": "go",
"style": "powerline",
"foreground": "#7FD5EA",
"properties": {
"prefix": "\u0028\uFCD1",
"postfix": "\u0029 "
}
},
{
"type": "python",
"style": "powerline",
"foreground": "#9e7eff",
"properties": {
"prefix": "\u0028\uE235 ",
"postfix": "\u0029 "
}
},
{
"type": "git",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": "<#E8CC97>git(</>",
"postfix": "<#E8CC97>) </>"
}
},
{
"type": "executiontime",
"style": "powerline",
"foreground": "#FFAB91",
"properties": {
"threshold": 100,
"style": "austin",
"prefix": "\u007B",
"postfix": "\u007D",
"always_enabled": false
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "battery",
"style": "powerline",
"foreground": "#193549",
"properties": {
"battery_icon": "",
"discharging_icon": "\uE231 ",
"charging_icon": "\uE234 ",
"charged_icon": "\uE22F ",
"color_background": false,
"charged_color": "#66BB6A",
"charging_color": "#64B5F6",
"discharging_color": "#E36464",
"prefix": "\u005B",
"postfix": "\uF295\u005D ",
"display_charging": true
}
}
]
}
],
"final_space": true
}

155
.poshthemes/iterm2.omp.json Normal file
View File

@ -0,0 +1,155 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"vertical_offset": 1,
"segments": [
{
"type": "os",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#fff",
"background": "#003543",
"properties": {
"prefix": " ",
"windows": "\uF179",
"postfix": ""
}
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#d2ff5e",
"background": "#003543",
"properties": {
"prefix": "",
"display_host": false,
"postfix": " "
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#003544",
"background": "#0087D8",
"properties": {
"prefix": " \uE5FF ",
"style": "full",
"folder_separator_icon": "/"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#d2ff5e",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"display_status": true,
"local_changes_color": "#ff9248",
"ahead_and_behind_color": "#f26d50",
"behind_color": "#f17c37",
"ahead_color": "#89d1dc",
"stash_count_icon": "\uF692 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#242424",
"background": "#33DD2D",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"color_background": true,
"error_color": "#f1184c",
"prefix": " \ufc8d"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "battery",
"style": "powerline",
"invert_powerline": true,
"powerline_symbol": "\uE0B2",
"foreground": "#242424",
"background": "#f36943",
"properties": {
"battery_icon": "\f583",
"color_background": true,
"charged_color": "#0476d0",
"charging_color": "#33DD2D",
"discharging_color": "#FFCD58",
"postfix": "\uF295 \uf583 "
}
},
{
"type": "python",
"style": "powerline",
"invert_powerline": true,
"powerline_symbol": "\uE0B2",
"foreground": "#003544",
"background": "#0087D8",
"properties": {
"prefix": " \uE235 ",
"display_version": false,
"display_mode": "context",
"display_virtual_env": true
}
},
{
"type": "time",
"style": "powerline",
"invert_powerline": true,
"powerline_symbol": "\uE0B2",
"foreground": "#fff",
"background": "#003543",
"properties": {
"prefix": "<#fff> \uf64f </>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#FFD700",
"properties": {
"root_icon": "⚡"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"properties": {
"prefix": "",
"text": "🚀"
}
}
]
}
]
}

View File

@ -0,0 +1,233 @@
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"postfix": " ",
"display_host": false
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#ff479c",
"properties": {
"prefix": "  ",
"home_icon": "~",
"folder_separator_icon": " \uE0b1 ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#fffb38",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"local_changes_color": "#ff9248",
"ahead_and_behind_color": "#f26d50",
"behind_color": "#f17c37",
"ahead_color": "#89d1dc",
"stash_count_icon": "\uF692 "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uF898 ",
"display_version": true
}
},
{
"type": "go",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#8ED1F7",
"properties": {
"prefix": " \uE626 ",
"display_version": true
}
},
{
"type": "julia",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#4063D8",
"properties": {
"prefix": " \uE624 ",
"display_version": true
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#FFDE57",
"properties": {
"prefix": " \uE235 ",
"display_version": true,
"display_mode": "files",
"display_virtual_env": false
}
},
{
"type": "ruby",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#AE1401",
"properties": {
"prefix": " \uE791 ",
"display_version": true,
"display_mode": "files"
}
},
{
"type": "azfunc",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FEAC19",
"properties": {
"prefix": " \uf0e7",
"display_version": false,
"display_mode": "files"
}
},
{
"type": "aws",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"properties": {
"prefix": " \uE7AD ",
"display_default": false
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#111111",
"background": "#ffff66",
"properties": {
"root_icon": ""
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#ffffff",
"background": "#83769c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"prefix": "<transparent></> \ufa1e"
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#2e9599",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": "<#83769c></> "
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "shell",
"style": "plain",
"foreground": "#ffffff",
"background": "#0077c2",
"properties": {
"prefix": "<#0077c2,transparent>\uE0B6</>  ",
"postfix": " <transparent,#0077c2>\uE0B2</>"
}
},
{
"type": "ytm",
"style": "powerline",
"powerline_symbol": "\uE0B2",
"invert_powerline": true,
"foreground": "#111111",
"background": "#1BD760",
"properties": {
"prefix": " \uF167 ",
"paused_icon": " ",
"playing_icon": " "
}
},
{
"type": "battery",
"style": "powerline",
"invert_powerline": true,
"powerline_symbol": "\uE0B2",
"foreground": "#ffffff",
"background": "#f36943",
"properties": {
"battery_icon": "",
"discharging_icon": " ",
"charging_icon": " ",
"charged_icon": " ",
"color_background": true,
"charged_color": "#4caf50",
"charging_color": "#40c4ff",
"discharging_color": "#ff5722",
"postfix": " "
}
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4",
"background": "#2e9599",
"foreground": "#111111"
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}"
}

View File

@ -0,0 +1,175 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0c2\ue0c2",
"foreground": "#000000",
"background": "#4707a8",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
},
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#4707a8",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B0"
},
{
"type": "az",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#1a1af5",
"properties": {
"display_id": false,
"display_name": true,
"info_separator": " @ ",
"prefix": " \uFD03 "
}
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#4707a8",
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": "<transparent>\uE0B0</> \uE23A"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "os",
"style": "diamond",
"leading_diamond": "\ue0c2\ue0c2",
"foreground": "#000000",
"background": "#ffffff",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"wsl": "\ue712",
"wsl_separator": " on ",
"windows": "\ue70f",
"postfix": "<#000000> \ue0b1</>"
}
},
{
"type": "root",
"style": "diamond",
"foreground": "#ffffff",
"background": "#000000",
"properties": {
"root_icon": "\uF0E7",
"postfix": "<#ffffff> \ue0b1</>"
}
},
{
"type": "path",
"style": "diamond",
"foreground": "#000000",
"background": "#ffffff",
"properties": {
"prefix": "<#000000> \ue5ff </>",
"style": "agnoster_short",
"enable_hyperlink": true,
"home_icon": "\uF7DB ",
"folder_icon": "<#000000>\ue5fe </>",
"folder_separator_icon": "<#000000>\uE0B1 </>"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#000000",
"background": "#ffffff",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#ffea00",
"working_color": "#E84855",
"staging_color": "#2FDA4E",
"ahead_color": "#2EC4B6",
"behind_color": "#8A4FFF",
"prefix": "<#ffffff>\ue0b1 </>"
}
},
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ffffff"
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"foreground": "#000000",
"background": "#ffffff",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#1a1af5",
"properties": {
"text": "\u276F"
}
}
]
}
]
}

View File

@ -0,0 +1,36 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#F5F5F5",
"properties": {
"prefix": "",
"text": "\uFB26"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#B80101",
"properties": {
"style": "agnoster"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#B80101",
"properties": {
"prefix": " <#F5F5F5>git:</>"
}
}
]
}
]
}

View File

@ -0,0 +1,66 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"background": "#feae34",
"foreground": "#262b44",
"powerline_symbol": "",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder"
},
"style": "diamond",
"type": "path"
},
{
"background": "#fee761",
"foreground": "#262b44",
"powerline_symbol": "",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"local_changes_color": "#f77622",
"ahead_and_behind_color": "#e43b44",
"behind_color": "#f77622",
"ahead_color": "#2ce8f5",
"stash_count_icon": "\uF692 "
},
"style": "powerline",
"type": "git"
},
{
"background": "#fee761",
"foreground": "#262b44",
"powerline_symbol": "",
"style": "powerline",
"type": "root"
},
{
"background": "#0095e9",
"foreground": "#ffffff",
"leading_diamond": "<transparent, #0095e9></>",
"properties": {
"always_enabled": true,
"color_background": true,
"display_exit_code": false,
"error_color": "#ff0044",
"prefix": " "
},
"style": "diamond",
"trailing_diamond": "",
"type": "exit"
}
],
"type": "prompt"
}
],
"final_space": true
}

View File

@ -0,0 +1,57 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"postfix": "",
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D0666F",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": "<#5FAAE8>git:(</>",
"postfix": "<#5FAAE8>)</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#DCB977",
"properties": {
"prefix": "\uF119",
"display_exit_code": false
}
},
{
"type": "time",
"style": "plain",
"foreground": "#66F68F",
"properties": {
"time_format": "15:04"
}
}
]
}
]
}

View File

@ -0,0 +1,106 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#3A86FF",
"properties": {
"prefix": ""
}
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#f1184c",
"background": "#242424",
"properties": {
"display_host": false,
"postfix": ""
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#f1184c",
"background": "#242424",
"properties": {
"prefix": "- root ",
"postfix": ""
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#FFBB00",
"background": "#242424",
"properties": {
"time_format": "2006-01-02 15:04:05",
"prefix": ""
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#33DD2D",
"background": "#242424",
"properties": {
"prefix": "\uE5FF ",
"style": "full",
"folder_separator_icon": "/"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#3A86FF",
"background": "#242424",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"prefix": ""
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#242424",
"background": "#33DD2D",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"color_background": true,
"error_color": "#f1184c",
"prefix": " \ufc8d"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"properties": {
"prefix": "",
"text": "\u279C"
}
}
]
}
]
}

71
.poshthemes/mt.omp.json Normal file
View File

@ -0,0 +1,71 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "#B4009E",
"leading_diamond": "\uE0B6",
"trailing_diamond": "",
"properties": {
"prefix": "",
"display_host": false
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#FFFF00",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#4E44FF",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": false,
"branch_icon": "",
"display_status": false,
"prefix": " \u279C (",
"postfix": ") "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#4e903d",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "#16C60C",
"properties": {
"prefix": " \u2665 ",
"time_format": "15:04"
}
}
]
}
]
}

View File

@ -0,0 +1,78 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "powerline",
"foreground": "cyan",
"properties": {
"prefix": "",
"postfix": ""
}
},
{
"type": "path",
"style": "plain",
"foreground": "cyan",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "lightYellow",
"properties": {
"prefix": ":: <lightBlue>git(</>",
"postfix": "<lightBlue>)</>"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "python",
"style": "plain",
"foreground": "lightRed",
"properties": {
"display_virtual_env": true,
"display_version": false,
"prefix": "[ ",
"postfix": " ]",
"display_mode": "always"
}
},
{
"type": "time",
"style": "plain",
"foreground": "lightGreen"
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "powerline",
"foreground": "lightGreen",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "red",
"prefix": "\u279c"
}
}
]
}
]
}

88
.poshthemes/nu4a.omp.json Normal file
View File

@ -0,0 +1,88 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ff3026",
"properties": {
"root_icon": "\uF0E7"
}
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#cfcfc4"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ec9706",
"properties" : {
"home_icon": "\uF7DB",
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "exit",
"style": "diamond",
"leading_diamond": "\ue0c2",
"trailing_diamond": "\ue0c0",
"foreground": "#ffffff",
"background": "#ff4040",
"properties": {
"display_exit_code": false,
"always_enabled": false,
"prefix": " \ue70f"
}
},
{
"type": "executiontime",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"leading_diamond": "\ue0b2",
"properties": {
"style": "austin"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,81 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ffe9aa"
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#ffffff"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#91ddff",
"properties": {
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ff8080",
"properties": {
"prefix": " \uE20F"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#007ACC",
"properties": {
"prefix": "",
"text": "\u276F"
}
}
]
}
],
"final_space": false
}

View File

@ -0,0 +1,80 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"text": "<#C591E8>\u276F</><#69FF94>\u276F</>"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"prefix": "",
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D0666F",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": "<#5FAAE8>git:(</>",
"postfix": "<#5FAAE8>)</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#DCB977",
"properties": {
"prefix": "\uF119",
"display_exit_code": false
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "command",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"shell": "bash",
"command": "git log --pretty=format:%cr -1 || date +%H:%m:%S"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"text": "\uF441"
}
}
]
}
]
}

View File

@ -0,0 +1,92 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "root",
"style": "plain",
"powerline_symbol": "\uE0B0",
"foreground": "red",
"properties": {
"prefix": "",
"postfix": " ",
"root_icon": "\uF0E7"
}
},
{
"type": "path",
"style": "plain",
"foreground": "blue",
"properties": {
"prefix": "",
"postfix": "",
"home_icon": "\uF7DB",
"folder_icon": "\uE5FF",
"folder_separator_icon": "/",
"style": "agnoster"
}
},
{
"type": "git",
"style": "plain",
"foreground": "green",
"properties": {
"display_status": true,
"prefix": " on ",
"postfix": "",
"ahead_color": "red",
"behind_color": "green",
"working_color": "red",
"staging_color": "yellow",
"local_changes_color": "yellow",
"ahead_and_behind_color": "red",
"color_background": false,
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"github_icon": " "
}
},
{
"type": "dotnet",
"style": "plain",
"foreground": "magenta",
"properties": {
"prefix": " [.NET] "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "yellow",
"properties": {
"prefix": "",
"time_format": "15:04:05"
}
},
{
"type": "text",
"style": "plain",
"foreground": "green",
"properties": {
"prefix": "",
"postfix": "",
"text": "\u276F"
}
}
]
}
]
}

View File

@ -0,0 +1,168 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"foreground": "#000000",
"background": "#ffea00",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
},
{
"type": "kubectl",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#ffea00",
"properties": {
"prefix": " \uFD31",
"template": " {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}"
}
},
{
"type": "az",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#008AD7",
"properties": {
"display_id": false,
"display_name": true,
"info_separator": " @ ",
"prefix": " \uFD03 "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "os",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"foreground": "#26C6DA",
"background": "#2f2f2f",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"wsl": "\ue712",
"wsl_separator": " on ",
"windows": "\ue70f",
"postfix": "<#ffea00> \ue0b1</>"
}
},
{
"type": "session",
"style": "diamond",
"foreground": "#ffea00",
"background": "#2f2f2f",
"properties": {
"display_host": false,
"user_info_separator": "<#ffea00 >\uf1fa</>",
"display_default": false,
"user_color": "#ffea00",
"host_color": "#2EEFBF",
"postfix": "<#ffea00> \ue0b1</>"
}
},
{
"type": "root",
"style": "diamond",
"foreground": "#ffea00",
"background": "#2f2f2f",
"properties": {
"root_icon": "\uF0E7",
"postfix": "<#ffea00> \ue0b1</>"
}
},
{
"type": "path",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"prefix": "<#f2f200> \ue5ff </>",
"style": "agnoster_short",
"enable_hyperlink": true,
"home_icon": "\uF7DB ",
"folder_icon": "<#B5B2C2>\ue5fe </>",
"folder_separator_icon": "<#ffea00>\uE0B1 </>"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#ffea00",
"background": "#2f2f2f",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#ffea00",
"working_color": "#E84855",
"staging_color": "#2FDA4E",
"ahead_color": "#2EC4B6",
"behind_color": "#8A4FFF",
"prefix": "<#ffea00>\ue0b1 </>"
}
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffea00",
"properties": {
"text": "\u276F"
}
}
]
}
]
}

View File

@ -0,0 +1,94 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ff0000",
"background": "#333333",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B0"
},
{
"type": "spotify",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#434343",
"background": "#1BD760",
"properties": {
"prefix": " \uF9C6 "
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#ff0000",
"properties": {
"prefix": " \uE5FF ",
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#fffb38",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#203248",
"properties": {
"prefix": " \uFCB5 "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ffff66"
},
{
"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#2e9599",
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#f1184c",
"color_background": true,
"prefix": "<transparent>\uE0B0</> \uE23A"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,100 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"postfix": " \uE0B1"
}
},
{
"type": "root",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A"
},
{
"type": "path",
"style": "plain",
"foreground": "#26C6DA",
"background": "#546E7A",
"properties": {
"style": "full",
"postfix": " "
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D4E157",
"background": "#546E7A",
"properties": {
"prefix": "<#26C6DA>\uE0B1 </>"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#546E7A",
"background": "transparent",
"properties": {
"text": "\uE0B0",
"prefix": "",
"postfix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#D4E157",
"background": "#546E7A",
"leading_diamond": "\uE0B2",
"properties": {
"postfix": " <#26C6DA>\uE0B3</> "
}
},
{
"type": "time",
"style": "plain",
"foreground": "#D4E157",
"background": "#546E7A",
"properties": {
"time_format": "15:04:05",
"postfix": " \uF017 "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#D4E157",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#FF5252",
"display_exit_code": false
}
}
]
}
]
}

View File

@ -0,0 +1,53 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "right",
"vertical_offset": -1,
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "#00C5C7",
"properties": {
"time_format": "15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "path",
"style": "plain",
"foreground": "#77E4F7",
"properties": {
"prefix": "",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#FFE700",
"properties": {
"prefix": ""
}
},
{
"type": "text",
"style": "plain",
"foreground": "#43D426",
"properties": {
"prefix": "",
"text": "\u276F"
}
}
]
}
]
}

View File

@ -0,0 +1,107 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#000000",
"background": "#ffffff",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B4"
},
{
"type": "root",
"style": "powerline",
"foreground": "#000000",
"background": "#0000ff",
"powerline_symbol": "\uE0B4",
"properties": {
"style": "full"
}
},
{
"type": "path",
"style": "powerline",
"foreground": "#ffffff",
"background": "#0000ff",
"powerline_symbol": "\uE0B4",
"properties": {
"style": "full",
"postfix": " "
}
},
{
"type": "git",
"style": "powerline",
"foreground": "#000000",
"background": "#D4E157",
"powerline_symbol": "\uE0B4",
"properties": {
"style": "full",
"prefix": " "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "python",
"style": "diamond",
"foreground": "#000000",
"background": "#D4E157",
"leading_diamond": "\uE0B6",
"properties": {
"postfix": " <#000000>\uE0B6</>"
}
},
{
"type": "go",
"style": "diamond",
"foreground": "#ffffff",
"background": "#7FD5EA",
"leading_diamond": "\uE0B6",
"display_version": true,
"properties": {
"postfix": " <#000000>\uE0B6</>"
}
},
{
"type": "time",
"style": "diamond",
"foreground": "#000000",
"background": "#ffffff",
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B4",
"properties": {
"time_format": "15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#D4E157",
"properties": {
"prefix": "\u276F",
"always_enabled": true,
"error_color": "#FF5252",
"display_exit_code": false
}
}
]
}
]
}

View File

@ -0,0 +1,236 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": []
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#000000",
"background": "#d3d7cf",
"leading_diamond": "╭─"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#e4e4e4",
"background": "#3465a4",
"properties": {
"prefix": " \uF07C ",
"home_icon": "~",
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#4e9a06",
"properties": {
"branch_icon": "\uF126 ",
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": true,
"local_changes_color": "#c4a000",
"ahead_and_behind_color": "#f26d50",
"behind_color": "#4e9a06",
"ahead_color": "#89d1dc",
"stash_count_icon": "\uF692 "
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "node",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#689f63",
"properties": {
"postfix": " \uF898 ",
"display_version": true
}
},
{
"type": "go",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#00acd7",
"properties": {
"postfix": " \uE627 ",
"display_version": true
}
},
{
"type": "julia",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#4063D8",
"properties": {
"postfix": " \uE624 ",
"display_version": true
}
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#FFDE57",
"properties": {
"postfix": " \uE235 ",
"display_version": true,
"display_mode": "files",
"display_virtual_env": false
}
},
{
"type": "ruby",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#AE1401",
"properties": {
"postfix": " \uE791 ",
"display_version": true,
"display_mode": "files"
}
},
{
"type": "azfunc",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background": "#FEAC19",
"properties": {
"postfix": " \uf0e7",
"display_version": false,
"display_mode": "files"
}
},
{
"type": "aws",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#ffffff",
"background_templates": [
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
],
"properties": {
"postfix": " \uE7AD ",
"display_default": false
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#111111",
"background": "#ffff66",
"properties": {
"root_icon": "\uF0AD"
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#000000",
"background": "#c4a000",
"properties": {
"postfix": " \uF252 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": true,
"foreground": "#d3d7cf",
"background": "#000000",
"properties": {
"always_enabled": true,
"display_exit_code": true,
"error_color": "#cc2222",
"color_background": true,
"success_icon": "✔"
}
},
{
"type": "time",
"style": "diamond",
"invert_powerline": true,
"trailing_diamond": "─╮",
"background": "#d3d7cf",
"foreground": "#000000",
"properties": {
"postfix": " \uF017 "
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "diamond",
"background": "#d3d7cf",
"leading_diamond": "╰─",
"properties": {
"prefix": "",
"postfix": "",
"text": ""
}
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "text",
"style": "diamond",
"background": "#d3d7cf",
"trailing_diamond": "─╯",
"properties": {
"text": ""
}
}
]
}
],
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Shell }} in {{ .Folder }}"
}

View File

@ -0,0 +1,59 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#FFEE58"
},
{
"type": "session",
"style": "plain",
"foreground": "#ffffff"
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#91ddff",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#193549",
"background": "#95ffa4"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#ff8080",
"properties": {
"prefix": "\uE20F"
}
}
]
}
],
"final_space": true
}

88
.poshthemes/pure.omp.json Normal file
View File

@ -0,0 +1,88 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}(Admin){{end}} {{.Path}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#BF616A",
"properties": {
"prefix": "",
"root_icon": "Admin"
}
},
{
"type": "path",
"style": "plain",
"foreground": "#81A1C1",
"properties": {
"prefix": "",
"style": "full"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "git",
"style": "plain",
"foreground": "#6C6C6C",
"properties": {
"prefix": "",
"display_stash_count": true,
"display_status": true,
"display_status_detail": true,
"display_upstream_icon": true,
"branch_icon": "",
"github_icon": "",
"branch_ahead_icon": "<#88C0D0>\u21e1 </>",
"branch_behind_icon": "<#88C0D0>\u21e3 </>",
"local_working_icon": "<#FFAFD7>\u002a</>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "executiontime",
"style": "plain",
"foreground": "#A3BE8C",
"properties": {
"style": "austin"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#B48EAD",
"properties": {
"prefix": "\u276f",
"display_exit_code": false,
"error_color": "#BF616A",
"always_enabled": true
}
}
]
}
]
}

55
.poshthemes/remk.omp.json Normal file
View File

@ -0,0 +1,55 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks":[
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "diamond",
"foreground": "#ffffff",
"background": "lightMagenta",
"leading_diamond": "\uE0B6",
"trailing_diamond": "",
"properties": {
"prefix": "",
"display_host":false
}
},
{
"type":"path",
"style":"plain",
"foreground": "#3f3f3f",
"background": "lightYellow",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#ffffff",
"background": "lightCyan",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": " git(",
"postfix": ") "
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\uE0B0",
"foreground": "#ffffff",
"background": "lightGreen",
"properties": {
"time_format": "15:04"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,51 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#98C379",
"properties": {
"prefix": "",
"text": "\u279C",
"postfix": ""
}
},
{
"type": "path",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D0666F",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": "<#5FAAE8>git:(</>",
"postfix": "<#5FAAE8>)</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#DCB977",
"properties": {
"prefix": "\u2717",
"display_exit_code": false
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,84 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#ffffff",
"background": "#BF231D"
},
{
"type": "os",
"style": "plain",
"background": "#0A703E",
"foreground": "#ffffff",
"properties": {
"wsl": "",
"wsl_separator": "",
"prefix": " ",
"postfix": " "
}
},
{
"type": "session",
"style": "plain",
"background": "#0A703E",
"foreground": "#ffffff",
"properties": {
"display_host": false,
"prefix": "",
"postfix": " "
}
},
{
"type": "path",
"style": "plain",
"foreground": "#ffffff",
"background": "#256C9D",
"properties": {
"max_depth": 2,
"folder_icon": "\uF115",
"folder_separator_icon": " \uE0B1 ",
"style": "agnoster_short",
"postfix": " "
}
},
{
"type": "git",
"style": "plain",
"foreground": "#ffffff",
"background": "#256C9D",
"properties": {
"branch_max_length": 30,
"display_stash_count": false,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": false,
"color_background": true,
"local_changes_color": "#ffffff",
"working_color": "#ffffff",
"staging_color": "#ffffff",
"ahead_color": "#ffffff",
"behind_color": "#ffffff",
"prefix": "[ ",
"postfix": " ]"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#256C9D",
"properties": {
"prefix": "",
"text": "\uE0B0"
}
}
]
}
]
}

View File

@ -0,0 +1,81 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"background": "#E0E0E0",
"foreground": "#BF231D"
},
{
"type": "os",
"style": "plain",
"background": "#E0E0E0",
"foreground": "#EF7D00",
"properties": {
"wsl": "",
"wsl_separator": "",
"prefix": " ",
"postfix": " "
}
},
{
"type": "session",
"style": "plain",
"background": "#E0E0E0",
"foreground": "#424242",
"properties": {
"display_host": false,
"prefix": "",
"postfix": ""
}
},
{
"type": "git",
"style": "plain",
"background": "#E0E0E0",
"foreground": "#424242",
"properties": {
"display_stash_count": false,
"branch_max_length": 30,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#053F22",
"working_color": "#BD6200",
"staging_color": "#053F22",
"ahead_color": "#0A703E",
"behind_color": "#0A703E",
"prefix": " [",
"postfix": "] "
}
},
{
"type": "path",
"style": "plain",
"background": "#E0E0E0",
"foreground": "#424242",
"properties": {
"style": "full",
"postfix": ""
}
},
{
"type": "text",
"style": "plain",
"foreground": "#E0E0E0",
"properties": {
"prefix": "",
"text": "\uE0B0"
}
}
]
}
]
}

1769
.poshthemes/schema.json Normal file

File diff suppressed because it is too large Load Diff

223
.poshthemes/slim.omp.json Normal file
View File

@ -0,0 +1,223 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"foreground": "#26C6DA",
"background": "#2f2f2f",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"wsl": "\ue712",
"wsl_separator": " on ",
"windows": "\ue70f",
"postfix": "<#7a7a7a> \uE0b1</>"
}
},
{
"type": "session",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"user_info_separator": "<#7a7a7a>\uf1fa</>",
"display_default": false,
"user_color": "#77f5d6",
"host_color": "#2EEFBF",
"postfix": "<#7a7a7a> \ue0b1</>"
}
},
{
"type": "root",
"style": "diamond",
"foreground": "#ffff66",
"background": "#2f2f2f",
"properties": {
"root_icon": "\uF0E7",
"postfix": "<#7a7a7a> \ue0b1</>"
}
},
{
"type": "path",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"prefix": "<#f2f200> \ue5ff </>",
"style": "agnoster_short",
"enable_hyperlink": true,
"home_icon": "\uf015",
"folder_icon": "<#B5B2C2>\ue5fe </>",
"folder_separator_icon": "<#B5B2C2>\ue0bf </>"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#ffeb3b",
"background": "#2f2f2f",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#ffeb3b",
"working_color": "#E84855",
"staging_color": "#2FDA4E",
"ahead_color": "#2EC4B6",
"behind_color": "#8A4FFF",
"prefix": "<#7a7a7a>\ue0b1 </>"
}
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "text",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"leading_diamond": "\ue0b2",
"properties": {
"text": "",
"prefix": "",
"postfix": ""
}
},
{
"type": "node",
"style": "diamond",
"foreground": "#6CA35E",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE718 ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "python",
"style": "diamond",
"foreground": "#96E072",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE235 ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "dotnet",
"style": "diamond",
"foreground": "#3891A6",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE77F ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\u2593\ue0c6",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"time_format": "15:04:05",
"postfix": "<#007ACC> \uf64f </>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#7a7a7a",
"properties": {
"text": "~#@\u276F",
"prefix": "",
"postfix": ""
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#7a7a7a",
"properties": {
"text": "\u276E"
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#FFCE5C",
"properties": {
"threshold": 500,
"style": "roundrock",
"postfix": "<#fafafa> \uf252 </>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#9FD356",
"properties": {
"display_exit_code": true,
"always_numeric": true,
"always_enabled": true,
"error_color": "#E84855",
"color_background": false,
"prefix": " \uf705 "
}
}
]
}
]
}

View File

@ -0,0 +1,219 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"leading_diamond": "\ue0c7\u2593",
"foreground": "#26C6DA",
"background": "#2f2f2f",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"wsl": "\ue712",
"wsl_separator": " on ",
"windows": "\ue70f",
"postfix": "<#7a7a7a> \ue0b1</>"
}
},
{
"type": "session",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"user_info_separator": "<#7a7a7a>\uf1fa</>",
"display_default": false,
"user_color": "#77f5d6",
"host_color": "#2EEFBF",
"postfix": "<#7a7a7a> \ue0b1</>"
}
},
{
"type": "root",
"style": "diamond",
"foreground": "#ffff66",
"background": "#2f2f2f",
"properties": {
"root_icon": "\uF0E7",
"postfix": "<#7a7a7a> \ue0b1</>"
}
},
{
"type": "path",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"prefix": "<#f2f200> \ue5ff </>",
"style": "full",
"enable_hyperlink": false,
"folder_icon": "<#B5B2C2>\ue5fe </>"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#ffeb3b",
"background": "#2f2f2f",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"display_status": true,
"status_colors_enabled": true,
"color_background": false,
"local_changes_color": "#ffeb3b",
"working_color": "#E84855",
"staging_color": "#2FDA4E",
"ahead_color": "#2EC4B6",
"behind_color": "#8A4FFF",
"prefix": "<#7a7a7a>\ue0b1 </>"
}
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"text": "",
"postfix": "",
"prefix": ""
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "text",
"style": "diamond",
"foreground": "#fafafa",
"background": "#2f2f2f",
"leading_diamond": "\ue0b2",
"properties": {
"text": "",
"prefix": "",
"postfix": ""
}
},
{
"type": "node",
"style": "diamond",
"foreground": "#6CA35E",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE718 ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "python",
"style": "diamond",
"foreground": "#96E072",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE235 ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "dotnet",
"style": "diamond",
"foreground": "#3891A6",
"background": "#2f2f2f",
"properties": {
"prefix": " \uE77F ",
"postfix": "<#7a7a7a> \ue0b3</>"
}
},
{
"type": "time",
"style": "diamond",
"trailing_diamond": "\u2593\ue0c6",
"foreground": "#fafafa",
"background": "#2f2f2f",
"properties": {
"time_format": "15:04:05",
"postfix": "<#007ACC> \uf64f </>"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#7a7a7a",
"properties": {
"text": "~#@\u276F"
}
}
]
},
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#7a7a7a",
"properties": {
"text": "\u276E"
}
},
{
"type": "executiontime",
"style": "plain",
"foreground": "#FFCE5C",
"properties": {
"threshold": 500,
"style": "roundrock",
"postfix": "<#fafafa> \uf252 </>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#9FD356",
"properties": {
"display_exit_code": true,
"always_numeric": true,
"always_enabled": true,
"error_color": "#E84855",
"color_background": false,
"prefix": " \uf705 "
}
}
]
}
]
}

View File

@ -0,0 +1,60 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "exit",
"style": "plain",
"foreground": "#CB4B16"
},
{
"type": "root",
"style": "plain",
"foreground": "#CECE04"
},
{
"type": "session",
"style": "plain",
"foreground": "#FFFFFF"
},
{
"type": "path",
"style": "plain",
"foreground": "#0973C0",
"properties": {
"style": "full",
"prefix": ""
}
},
{
"type": "git",
"style": "plain",
"foreground": "#C1C106",
"properties": {
"prefix": "<#ffffff>git:</>"
}
},
{
"type": "python",
"style": "plain",
"foreground": "#100e23",
"properties": {
"prefix": " \uE235 "
}
},
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"text": "<#CB4B16>\u276F</><#CACA02>\u276F</><#4E9A06>\u276F</>"
}
}
]
}
]
}

121
.poshthemes/space.omp.json Normal file
View File

@ -0,0 +1,121 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": false,
"console_title": false,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "#26C6DA",
"properties": {
"prefix": "",
"postfix": "",
"macos": "mac"
}
},
{
"type": "session",
"style": "plain",
"foreground": "#26C6DA",
"properties": {
"display_host": false,
"prefix": " ",
"postfix": ": ",
"user_info_separator": "",
"display_user": true
}
},
{
"type": "path",
"style": "plain",
"invert_powerline": false,
"foreground": "lightGreen",
"properties": {
"prefix": "",
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"invert_powerline": false,
"properties": {
"branch_icon": "",
"display_stash_count": true,
"display_status": false,
"prefix": "<#ffffff>on</> "
}
},
{
"type": "python",
"style": "powerline",
"foreground": "#906cff",
"properties": {
"prefix": "\u005b\uE235 ",
"postfix": "\u005D "
}
},
{
"type": "go",
"style": "powerline",
"foreground": "#7FD5EA",
"properties": {
"prefix": "\u005b\uFCD1 ",
"postfix": "\u005D "
}
},
{
"type": "node",
"style": "powerline",
"foreground": "#76b367",
"properties": {
"prefix": "\u005b\uE718 ",
"postfix": "\u005D "
}
},
{
"type": "ruby",
"style": "powerline",
"foreground": "#f44336",
"properties": {
"prefix": "\u005b\uE791",
"postfix": "\u005D "
}
},
{
"type": "java",
"style": "powerline",
"foreground": "#ea2d2e",
"properties": {
"prefix": "\u005b\uE738 ",
"postfix": "\u005D "
}
},
{
"type": "julia",
"style": "powerline",
"foreground": "#4063D8",
"properties": {
"prefix": " \uE624 "
}
},
{
"type": "text",
"style": "plain",
"foreground": "#FFD54F",
"properties": {
"prefix": "",
"text": "\u276F"
}
}
]
}
]
}

View File

@ -0,0 +1,60 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": false,
"console_title": false,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"type": "session",
"style": "plain",
"invert_powerline": false,
"foreground": "lightYellow",
"properties": {
"display_host": false,
"prefix": "",
"user_info_separator": "",
"display_user": true
}
},
{
"type": "path",
"style": "plain",
"invert_powerline": false,
"foreground": "cyan",
"properties": {
"prefix": "<#ffffff>in</> ",
"style": "folder"
}
},
{
"type": "git",
"style": "plain",
"invert_powerline": false,
"foreground": "#ff94df",
"properties": {
"branch_icon": " <#ff94df><b> </b></>",
"display_stash_count": true,
"display_status": false,
"prefix": "<#ffffff>on</> "
}
},
{
"type": "text",
"style": "plain",
"foreground": "lightGreen",
"properties": {
"prefix": "",
"text": "\u276F"
}
}
]
}
]
}

73
.poshthemes/star.omp.json Normal file
View File

@ -0,0 +1,73 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#E06C75",
"properties": {
"root_icon": "root",
"prefix": "",
"postfix": " <#ffffff>in</> "
}
},
{
"type": "path",
"style": "plain",
"foreground": "#55B9C4",
"properties": {
"style": "folder",
"prefix": ""
}
},
{
"type": "git",
"style": "plain",
"foreground": "#C678DD",
"properties": {
"prefix": "<#ffffff>on</> ",
"display_status": true
}
},
{
"type": "node",
"style": "plain",
"foreground": "#98C379",
"properties": {
"display_version": true,
"prefix": "<#ffffff>via</> \uE781 "
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#C94A16",
"properties": {
"prefix": "x",
"display_exit_code": false
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#63F08C",
"properties": {
"prefix": "",
"text": "\u279C"
}
}
]
}
]
}

View File

@ -0,0 +1,147 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"osc99": true,
"blocks": [
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "shell",
"style": "plain",
"foreground": "#007acc",
"properties": {
"prefix": "",
"postfix": ""
}
},
{
"type": "root",
"style": "plain",
"foreground": "#ff8080",
"properties": {
"prefix": " <#757575,>as</> ",
"postfix": "",
"root_icon": "root"
}
},
{
"type": "time",
"style": "plain",
"foreground": "#689f38",
"properties": {
"prefix": " <#757575,>|</> ",
"postfix": "",
"time_format": "15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#757575",
"properties": {
"prefix": "\u250c ",
"display_host": true
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#100e23",
"background": "#91ddff",
"properties": {
"style": "folder",
"enable_hyperlink": false
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#100e23",
"background": "#95ffa4",
"properties": {
"branch_ahead_icon": "\u2191",
"branch_behind_icon": "\u2193",
"branch_gone": "\u2262",
"branch_icon": "\ue0a0 ",
"branch_identical_icon": "\u2261",
"cherry_pick_icon": "\u2713 ",
"color_background": true,
"commit_icon": "\u25b7 ",
"display_status_detail": true,
"local_staged_icon": "",
"local_working_icon": "",
"merge_icon": "\u25f4 ",
"no_commits_icon": "[no commits]",
"rebase_icon": "\u2c62 ",
"stash_count_icon": "",
"status_colors_enabled": true,
"status_separator_icon": " \u2502",
"tag_icon": "\u25b6 ",
"local_changes_color": "#ff9248",
"ahead_and_behind_color": "#f26d50",
"behind_color": "#f17c37",
"ahead_color": "#89d1dc"
}
},
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#100e23",
"background": "#ffee58"
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#ff8080",
"properties": {
"display_exit_code": false,
"prefix": " ",
"postfix": " ",
"error_icon": "error"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#757575",
"properties": {
"prefix": "",
"postfix": "",
"text": "\u2514 "
}
},
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"prefix": "",
"postfix": "",
"text": "$"
}
}
]
}
],
"final_space": true
}

View File

@ -0,0 +1,57 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"background": "#18354c",
"foreground": "#ffc107",
"powerline_symbol": "",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder"
},
"style": "diamond",
"type": "path"
},
{
"background": "#18354c",
"foreground": "#ffc107",
"powerline_symbol": "",
"properties": {
"display_stash_count": true,
"display_upstream_icon": true,
"status_colors_enabled": false
},
"style": "powerline",
"type": "git"
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#18354c",
"background": "#ffc107",
"properties": {
"prefix": " \uE235 "
}
},
{
"background": "#ffc107",
"foreground": "#18354c",
"powerline_symbol": "",
"style": "powerline",
"type": "root"
}
],
"type": "prompt"
}
],
"final_space": true
}

116
.poshthemes/wopian.omp.json Normal file
View File

@ -0,0 +1,116 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "powerline",
"foreground": "cyan",
"properties": {
"prefix": "",
"postfix": "",
"wsl": "",
"wsl_separator": ""
}
},
{
"type": "path",
"style": "plain",
"foreground": "cyan",
"properties": {
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"foreground": "lightYellow",
"properties": {
"prefix": ":: <lightBlue>git(</>",
"postfix": "<lightBlue>)</>"
}
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "node",
"style": "plain",
"foreground": "#68a063",
"properties": {
"display_version": true,
"prefix": " ",
"postfix": "",
"display_mode": "files",
"display_package_manager": true,
"yarn_icon": "/yarn",
"npm_icon": "/npm"
}
},
{
"type": "crystal",
"style": "plain",
"foreground": "#4063D8",
"properties": {
"display_version": true,
"display_mode": "files",
"prefix": " ",
"postfix": ""
}
},
{
"type": "ruby",
"style": "plain",
"foreground": "#DE3F24",
"properties": {
"display_version": true,
"prefix": " ",
"postfix": "",
"display_mode": "files"
}
},
{
"type": "python",
"style": "plain",
"foreground": "#FED142",
"properties": {
"display_virtual_env": false,
"display_version": true,
"prefix": " ",
"postfix": "",
"display_mode": "context"
}
},
{
"type": "time",
"style": "plain",
"foreground": "lightGreen"
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "exit",
"style": "powerline",
"foreground": "lightGreen",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "red",
"prefix": "\u279c"
}
}
]
}
]
}

107
.poshthemes/ys.omp.json Normal file
View File

@ -0,0 +1,107 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "python",
"style": "plain",
"foreground": "white",
"properties": {
"prefix": "(",
"postfix": ")",
"display_version": false
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightBlue",
"properties": {
"prefix": "",
"text": "#"
}
},
{
"type": "root",
"style": "plain",
"foreground": "red",
"properties": {
"root_icon": "%"
}
},
{
"type": "session",
"style": "plain",
"properties": {
"user_info_separator": " <darkGray>@</> ",
"prefix": "",
"user_color": "cyan",
"host_color": "green"
}
},
{
"type": "path",
"style": "plain",
"foreground": "lightYellow",
"properties": {
"prefix": "<darkGray>in </>",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"properties": {
"prefix": "<darkGray>on</> <white>git:</>"
}
},
{
"type": "time",
"style": "plain",
"foreground": "darkGray",
"properties": {
"prefix": "[",
"postfix": "]"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "red",
"properties": {
"prefix": " C:",
"always_numeric": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightRed",
"properties": {
"prefix": "",
"text": "$",
"postfix": ""
}
}
]
}
],
"final_space": true
}

62
.poshthemes/zash.omp.json Normal file
View File

@ -0,0 +1,62 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
"style": "plain",
"foreground": "#E36464",
"properties": {
"user_info_separator": "",
"display_host": false,
"prefix": "@"
}
},
{
"type": "text",
"style": "plain",
"foreground": "#62ED8B",
"properties": {
"text": "\u279C",
"postfix": "",
"prefix": ""
}
},
{
"type": "path",
"style": "plain",
"foreground": "#56B6C2",
"properties": {
"style": "folder",
"postfix": ""
}
},
{
"type": "git",
"style": "plain",
"foreground": "#D4AAFC",
"properties": {
"branch_icon": "",
"display_status": false,
"prefix": " <#DDB15F>git(</>",
"postfix": "<#DDB15F>)</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "#DCB977",
"properties": {
"prefix": "\uF119",
"display_exit_code": false,
"postfix": ""
}
}
]
}
],
"final_space": true
}

8
.zshrc
View File

@ -364,6 +364,12 @@ alias covbe="curl -L covid19.trackercli.com/be"
alias covpt="curl -L covid19.trackercli.com/pt"
alias covnl="curl -L covid19.trackercli.com/nl"
alias covch="curl -L covid19.trackercli.com/ch"
alias covus="curl -L covid19.trackercli.com/us"
alias covsk="curl -L covid19.trackercli.com/sk"
alias covcz="curl -L covid19.trackercli.com/cz"
alias covpl="curl -L covid19.trackercli.com/pl"
alias covhr="curl -L covid19.trackercli.com/hr"
alias covrs="curl -L covid19.trackercli.com/rs"
# Alias's for multiple directory listing commands
alias la='ls -Alh' # show hidden files
@ -580,5 +586,5 @@ alias psf="ps auxfww"
alias intercept="sudo strace -ff -e trace=write -e write=1,2 -p"
eval $(thefuck --alias joder)
wal -n -q -i /home/jose/Imágenes/walls/wall12.jpg
wal -n -q -i /home/jose/Imágenes/walls/wall-hallstatt2.jpg
neofetch

View File

@ -0,0 +1 @@
complete -c breeze -d "Shortcut tools for git command."

View File

@ -0,0 +1,7 @@
complete --command fisher --exclusive --long help --description "Print help"
complete --command fisher --exclusive --long version --description "Print version"
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins"
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins"
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins"
complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex"
complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)"

34
fish/conf.d/.gitnow Normal file
View File

@ -0,0 +1,34 @@
[ keybindings ]
# Alt + S
state = \es
# Alt + E
stage = \ee
# Ctrl + E
unstage = \ce
# Alt + M
show = \em
# Alt + C
commit-all = \ec
# Alt + D
pull = \ed
# Alt + P
push = \ep
# Alt + U
upstream = \eu
# Alt + L
logs = \el
# Alt + F
feature = \ef
# Alt + H
hotfix = \eh

137
fish/conf.d/abbr_tips.fish Normal file
View File

@ -0,0 +1,137 @@
bind " " '__abbr_tips_bind_space'
bind \n '__abbr_tips_bind_newline'
bind \r '__abbr_tips_bind_newline'
set -g __abbr_tips_used 0
function __abbr_tips_install --on-event abbr_tips_install
# Regexes used to find abbreviation inside command
# Only the first matching group will be tested as an abbr
set -Ux ABBR_TIPS_REGEXES
set -a ABBR_TIPS_REGEXES '(^(\w+\s+)+(-{1,2})\w+)(\s\S+)'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){3}).*'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){2}).*'
set -a ABBR_TIPS_REGEXES '(^(\s?(\w-?)+){1}).*'
set -Ux ABBR_TIPS_PROMPT "\n💡 \e[1m{{ .abbr }}\e[0m => {{ .cmd }}"
set -gx ABBR_TIPS_AUTO_UPDATE 'background'
# Locking mechanism
# Prevent this file to spawn more than one subshell
if test "$USER" != 'root'
fish -c '__abbr_tips_init' &
end
end
function __abbr_tips --on-event fish_postexec -d "Abbreviation reminder for the current command"
set -l command (string split ' ' -- "$argv")
set -l cmd (string replace -r -a '\\s+' ' ' -- "$argv" )
# Update abbreviations lists when adding/removing abbreviations
if test "$command[1]" = "abbr"
if string match -q -r '^--add|-a$' -- "$command[2]"
and not contains -- "$command[3]" $__ABBR_TIPS_KEYS
set -a __ABBR_TIPS_KEYS "$command[3]"
set -a __ABBR_TIPS_VALUES "$command[4..-1]"
else if string match -q -r '^--erase|-e$' -- "$command[2]"
and set -l abb (contains -i -- "$command[3]" $__ABBR_TIPS_KEYS)
set -e __ABBR_TIPS_KEYS[$abb]
set -e __ABBR_TIPS_VALUES[$abb]
end
else if test "$command[1]" = "alias"
# Update abbreviations list when adding aliases
set -l alias_key
set -l alias_value
if string match -q '*=*' -- "$command[2]"
if test (count $command) = 2
set command_split (string split '=' -- $command[2])
set alias_key "a__$command_split[1]"
set alias_value $command_split[2]
set -a alias_value $command[3..-1]
end
else
set alias_key "a__$command[2]"
set alias_value $command[3..-1]
end
if set -l abb (contains -i -- "$command[3..-1]" $__ABBR_TIPS_KEYS)
set __ABBR_TIPS_KEYS[$abb] $alias_key
set __ABBR_TIPS_VALUES[$abb] (string trim -c '\'"' -- $alias_value | string join ' ')
else
set -a __ABBR_TIPS_KEYS $alias_key
set -a __ABBR_TIPS_VALUES (string trim -c '\'"' -- $alias_value | string join ' ')
end
else if test "$command[1]" = "functions"
# Update abbreviations list when removing aliases
and string match -q -r '^--erase|-e$' -- "$command[2]"
and set -l abb (contains -i -- a__{$command[3]} $__ABBR_TIPS_KEYS)
set -e __ABBR_TIPS_KEYS[$abb]
set -e __ABBR_TIPS_VALUES[$abb]
end
# Exit in the following cases :
# - abbreviation has been used
# - command is already an abbreviation
# - command not found
# - or it's a function (alias)
if test $__abbr_tips_used = 1
set -g __abbr_tips_used 0
return
else if abbr -q "$cmd"
or not type -q "$command[1]"
return
else if string match -q -- "alias $cmd *" (alias)
return
else if test (type -t "$command[1]") = 'function'
and count $ABBR_TIPS_ALIAS_WHITELIST >/dev/null
and not contains "$command[1]" $ABBR_TIPS_ALIAS_WHITELIST
return
end
set -l abb
if not set abb (contains -i -- "$cmd" $__ABBR_TIPS_VALUES)
for r in $ABBR_TIPS_REGEXES
if set abb (contains -i -- (string replace -r -a -- "$r" '$1' "$cmd") $__ABBR_TIPS_VALUES)
break
end
end
end
if test -n "$abb"
if string match -q "a__*" -- "$__ABBR_TIPS_KEYS[$abb]"
set -l alias (string sub -s 4 -- "$__ABBR_TIPS_KEYS[$abb]")
if functions -q "$alias"
echo -e (string replace -a '{{ .cmd }}' -- "$__ABBR_TIPS_VALUES[$abb]" \
(string replace -a '{{ .abbr }}' -- "$alias" "$ABBR_TIPS_PROMPT"))
else
set -e __ABBR_TIPS_KEYS[$abb]
set -e __ABBR_TIPS_VALUES[$abb]
end
else
echo -e (string replace -a '{{ .cmd }}' -- "$__ABBR_TIPS_VALUES[$abb]" \
(string replace -a '{{ .abbr }}' -- "$__ABBR_TIPS_KEYS[$abb]" "$ABBR_TIPS_PROMPT"))
end
end
return
end
function __abbr_tips_uninstall --on-event abbr_tips_uninstall
bind --erase \n
bind --erase \r
bind --erase " "
set --erase __abbr_tips_used
set --erase __abbr_tips_run_once
set --erase __ABBR_TIPS_VALUES
set --erase __ABBR_TIPS_KEYS
set --erase ABBR_TIPS_PROMPT
set --erase ABBR_TIPS_AUTO_UPDATE
set --erase ABBR_TIPS_ALIAS_WHITELIST
set --erase ABBR_TIPS_REGEXES
functions --erase __abbr_tips_init
functions --erase __abbr_tips_bind_newline
functions --erase __abbr_tips_bind_space
functions --erase __abbr_tips
end

85
fish/conf.d/breeze.fish Normal file
View File

@ -0,0 +1,85 @@
abbr -a cdgtop 'cd (git rev-parse --show-toplevel)'
abbr -a g 'git'
abbr -a gaa 'git add --all'
abbr -a gap 'git add -pu'
abbr -a gash 'git stash'
abbr -a gasha 'git stash apply'
abbr -a gashl 'git stash list'
abbr -a gashp 'git stash pop'
abbr -a gashu 'git stash --include-untracked'
abbr -a gau 'git add -u'
abbr -a gc 'git commit'
abbr -a gce 'git clean'
abbr -a gcef 'git clean -fd'
abbr -a gcl 'git clone'
abbr -a gcmsg 'git commit -m'
abbr -a gdf 'git diff --'
abbr -a gdnw 'git diff -w --'
abbr -a gdw 'git diff --word-diff'
abbr -a gf 'git fetch'
abbr -a gfa 'git fetch --all'
abbr -a gfr 'git fetch; and git rebase'
abbr -a glg 'git log --graph --max-count=5'
abbr -a gm 'git merge'
abbr -a gmff 'git merge --ff'
abbr -a gmnff 'git merge --no-ff'
abbr -a gopen 'git config --get remote.origin.url | xargs open'
abbr -a gpl 'git pull'
abbr -a gplr 'git pull --rebase'
abbr -a gps 'git push'
abbr -a gpsf 'git push --force-with-lease'
abbr -a gr 'git remote -v'
abbr -a grb 'git rebase'
abbr -a grbi 'git rebase -i'
abbr -a grs 'git reset --'
abbr -a grsh 'git reset --hard'
abbr -a grsl 'git reset HEAD~'
abbr -a gsh 'git show'
abbr -a gt 'git tag'
abbr -a gtop 'git rev-parse --show-toplevel'
abbr -a gurl 'git config --get remote.origin.url'
abbr -a runsv 'python -m SimpleHTTPServer'
function _breeze_uninstall -e breeze_uninstall
abbr -e cdgtop
abbr -e g
abbr -e gaa
abbr -e gap
abbr -e gash
abbr -e gasha
abbr -e gashl
abbr -e gashp
abbr -e gashu
abbr -e gau
abbr -e gc
abbr -e gce
abbr -e gcef
abbr -e gcl
abbr -e gcmsg
abbr -e gdf
abbr -e gdnw
abbr -e gdw
abbr -e gf
abbr -e gfa
abbr -e gfr
abbr -e glg
abbr -e gm
abbr -e gmff
abbr -e gmnff
abbr -e gopen
abbr -e gpl
abbr -e gplr
abbr -e gps
abbr -e gpsf
abbr -e gr
abbr -e grb
abbr -e grbi
abbr -e grs
abbr -e grsh
abbr -e grsl
abbr -e gsh
abbr -e gt
abbr -e gtop
abbr -e gurl
abbr -e runsv
end

296
fish/conf.d/done.fish Normal file
View File

@ -0,0 +1,296 @@
# MIT License
# Copyright (c) 2016 Francisco Lourenço & Daniel Wehner
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
set -g __done_version 1.16.3
function __done_run_powershell_script
set -l powershell_exe (command --search "powershell.exe")
if test $status -ne 0
and command --search wslvar
set -l powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe)
end
if string length --quiet "$powershell_exe"
and test -x "$powershell_exe"
set cmd (string escape $argv)
eval "$powershell_exe -Command $cmd"
end
end
function __done_windows_notification -a title -a message
if test "$__done_notify_sound" -eq 1
set soundopt "<audio silent=\"false\" src=\"ms-winsoundevent:Notification.Default\" />"
else
set soundopt "<audio silent=\"true\" />"
end
__done_run_powershell_script "
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
\$toast_xml_source = @\"
<toast>
$soundopt
<visual>
<binding template=\"ToastText02\">
<text id=\"1\">$title</text>
<text id=\"2\">$message</text>
</binding>
</visual>
</toast>
\"@
\$toast_xml = New-Object Windows.Data.Xml.Dom.XmlDocument
\$toast_xml.loadXml(\$toast_xml_source)
\$toast = New-Object Windows.UI.Notifications.ToastNotification \$toast_xml
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier(\"fish\").Show(\$toast)
"
end
function __done_get_focused_window_id
if type -q lsappinfo
lsappinfo info -only bundleID (lsappinfo front) | cut -d '"' -f4
else if test -n "$SWAYSOCK"
and type -q jq
swaymsg --type get_tree | jq '.. | objects | select(.focused == true) | .id'
else if begin
test "$XDG_SESSION_DESKTOP" = gnome; and type -q gdbus
end
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'global.display.focus_window.get_id()'
else if type -q xprop
and test -n "$DISPLAY"
# Test that the X server at $DISPLAY is running
and xprop -grammar >/dev/null 2>&1
xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2
else if uname -a | string match --quiet --ignore-case --regex microsoft
__done_run_powershell_script '
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class WindowsCompat {
[DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
}
"@
[WindowsCompat]::GetForegroundWindow()
'
else if set -q __done_allow_nongraphical
echo 12345 # dummy value
end
end
function __done_is_tmux_window_active
set -q fish_pid; or set -l fish_pid %self
# find the outermost process within tmux
# ppid != "tmux" -> pid = ppid
# ppid == "tmux" -> break
set tmux_fish_pid $fish_pid
while set tmux_fish_ppid (ps -o ppid= -p $tmux_fish_pid | string trim)
and ! string match -q "tmux*" (basename (ps -o command= -p $tmux_fish_ppid))
set tmux_fish_pid $tmux_fish_ppid
end
# tmux session attached and window is active -> no notification
# all other combinations -> send notification
tmux list-panes -a -F "#{session_attached} #{window_active} #{pane_pid}" | string match -q "1 1 $tmux_fish_pid"
end
function __done_is_screen_window_active
string match --quiet --regex "$STY\s+\(Attached" (screen -ls)
end
function __done_is_process_window_focused
# Return false if the window is not focused
if set -q __done_allow_nongraphical
return 1
end
set __done_focused_window_id (__done_get_focused_window_id)
if test "$__done_sway_ignore_visible" -eq 1
and test -n "$SWAYSOCK"
string match --quiet --regex "^true" (swaymsg -t get_tree | jq ".. | objects | select(.id == "$__done_initial_window_id") | .visible")
return $status
else if test "$__done_initial_window_id" != "$__done_focused_window_id"
return 1
end
# If inside a tmux session, check if the tmux window is focused
if type -q tmux
and test -n "$TMUX"
__done_is_tmux_window_active
return $status
end
# If inside a screen session, check if the screen window is focused
if type -q screen
and test -n "$STY"
__done_is_screen_window_active
return $status
end
return 0
end
function __done_humanize_duration -a milliseconds
set -l seconds (math --scale=0 "$milliseconds/1000" % 60)
set -l minutes (math --scale=0 "$milliseconds/60000" % 60)
set -l hours (math --scale=0 "$milliseconds/3600000")
if test $hours -gt 0
printf '%s' $hours'h '
end
if test $minutes -gt 0
printf '%s' $minutes'm '
end
if test $seconds -gt 0
printf '%s' $seconds's'
end
end
# verify that the system has graphical capabilities before initializing
if test -z "$SSH_CLIENT" # not over ssh
and count (__done_get_focused_window_id) >/dev/null # is able to get window id
set __done_enabled
end
if set -q __done_allow_nongraphical
and set -q __done_notification_command
set __done_enabled
end
if set -q __done_enabled
set -g __done_initial_window_id ''
set -q __done_min_cmd_duration; or set -g __done_min_cmd_duration 5000
set -q __done_exclude; or set -g __done_exclude 'git (?!push|pull|fetch)'
set -q __done_notify_sound; or set -g __done_notify_sound 0
set -q __done_sway_ignore_visible; or set -g __done_sway_ignore_visible 0
function __done_started --on-event fish_preexec
set __done_initial_window_id (__done_get_focused_window_id)
end
function __done_ended --on-event fish_prompt
set -l exit_status $status
# backwards compatibility for fish < v3.0
set -q cmd_duration; or set -l cmd_duration $CMD_DURATION
if test $cmd_duration
and test $cmd_duration -gt $__done_min_cmd_duration # longer than notify_duration
and not __done_is_process_window_focused # process pane or window not focused
and not string match -qr $__done_exclude $history[1] # don't notify on git commands which might wait external editor
# Store duration of last command
set -l humanized_duration (__done_humanize_duration "$cmd_duration")
set -l title "Done in $humanized_duration"
set -l wd (string replace --regex "^$HOME" "~" (pwd))
set -l message "$wd/ $history[1]"
set -l sender $__done_initial_window_id
if test $exit_status -ne 0
set title "Failed ($exit_status) after $humanized_duration"
end
if set -q __done_notification_command
eval $__done_notification_command
if test "$__done_notify_sound" -eq 1
echo -e "\a" # bell sound
end
else if type -q terminal-notifier # https://github.com/julienXX/terminal-notifier
if test "$__done_notify_sound" -eq 1
terminal-notifier -message "$message" -title "$title" -sender "$__done_initial_window_id" -sound default
else
terminal-notifier -message "$message" -title "$title" -sender "$__done_initial_window_id"
end
else if type -q osascript # AppleScript
osascript -e "display notification \"$message\" with title \"$title\""
if test "$__done_notify_sound" -eq 1
echo -e "\a" # bell sound
end
else if type -q notify-send # Linux notify-send
# set urgency to normal
set -l urgency normal
# use user-defined urgency if set
if set -q __done_notification_urgency_level
set urgency "$__done_notification_urgency_level"
end
# override user-defined urgency level if non-zero exitstatus
if test $exit_status -ne 0
set urgency critical
if set -q __done_notification_urgency_level_failure
set urgency "$__done_notification_urgency_level_failure"
end
end
notify-send --urgency=$urgency --icon=utilities-terminal --app-name=fish "$title" "$message"
if test "$__done_notify_sound" -eq 1
echo -e "\a" # bell sound
end
else if type -q notify-desktop # Linux notify-desktop
set -l urgency
if test $exit_status -ne 0
set urgency "--urgency=critical"
end
notify-desktop $urgency --icon=utilities-terminal --app-name=fish "$title" "$message"
if test "$__done_notify_sound" -eq 1
echo -e "\a" # bell sound
end
else if uname -a | string match --quiet --ignore-case --regex microsoft
__done_windows_notification "$title" "$message"
else # anything else
echo -e "\a" # bell sound
end
end
end
end
function __done_uninstall -e done_uninstall
# Erase all __done_* functions
functions -e __done_ended
functions -e __done_started
functions -e __done_get_focused_window_id
functions -e __done_is_tmux_window_active
functions -e __done_is_screen_window_active
functions -e __done_is_process_window_focused
functions -e __done_windows_notification
functions -e __done_run_powershell_script
functions -e __done_humanize_duration
# Erase __done variables
set -e __done_version
end

View File

@ -0,0 +1,10 @@
function __fish_finders_uninstall --on-event fish_finders_uninstall
functions --erase fbranch
functions --erase fabbr
functions --erase fenv
functions --erase fif
functions --erase fkill
functions --erase fpid
functions --erase fport
functions --erase fssh
end

63
fish/conf.d/fzf.fish Normal file
View File

@ -0,0 +1,63 @@
set -q FZF_TMUX_HEIGHT; or set -U FZF_TMUX_HEIGHT "40%"
set -q FZF_DEFAULT_OPTS; or set -U FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT"
set -q FZF_LEGACY_KEYBINDINGS; or set -U FZF_LEGACY_KEYBINDINGS 1
set -q FZF_DISABLE_KEYBINDINGS; or set -U FZF_DISABLE_KEYBINDINGS 0
set -q FZF_PREVIEW_FILE_CMD; or set -U FZF_PREVIEW_FILE_CMD "head -n 10"
set -q FZF_PREVIEW_DIR_CMD; or set -U FZF_PREVIEW_DIR_CMD "ls"
if test "$FZF_DISABLE_KEYBINDINGS" -ne 1
if test "$FZF_LEGACY_KEYBINDINGS" -eq 1
bind \ct '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd --hidden'
bind \cg '__fzf_open'
bind \co '__fzf_open --editor'
if ! test "$fish_key_bindings" = fish_default_key_bindings
bind -M insert \ct '__fzf_find_file'
bind -M insert \cr '__fzf_reverse_isearch'
bind -M insert \ec '__fzf_cd'
bind -M insert \eC '__fzf_cd --hidden'
bind -M insert \cg '__fzf_open'
bind -M insert \co '__fzf_open --editor'
end
else
bind \co '__fzf_find_file'
bind \cr '__fzf_reverse_isearch'
bind \ec '__fzf_cd'
bind \eC '__fzf_cd --hidden'
bind \eO '__fzf_open'
bind \eo '__fzf_open --editor'
if ! test "$fish_key_bindings" = fish_default_key_bindings
bind -M insert \co '__fzf_find_file'
bind -M insert \cr '__fzf_reverse_isearch'
bind -M insert \ec '__fzf_cd'
bind -M insert \eC '__fzf_cd --hidden'
bind -M insert \eO '__fzf_open'
bind -M insert \eo '__fzf_open --editor'
end
end
if not bind --user \t >/dev/null 2>/dev/null
if set -q FZF_COMPLETE
bind \t '__fzf_complete'
if ! test "$fish_key_bindings" = fish_default_key_bindings
bind -M insert \t '__fzf_complete'
end
end
end
end
function _fzf_uninstall -e fzf_uninstall
bind --user \
| string replace --filter --regex -- "bind (.+)( '?__fzf.*)" 'bind -e $1' \
| source
set --names \
| string replace --filter --regex '(^FZF)' 'set --erase $1' \
| source
functions --erase _fzf_uninstall
end

42
fish/conf.d/pisces.fish Normal file
View File

@ -0,0 +1,42 @@
set -l _pisces_bind_mode default
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end
set -q pisces_pairs
or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','"
for pair in $pisces_pairs
_pisces_bind_pair $_pisces_bind_mode (string split -- ',' $pair)
end
# normal backspace, also known as \010 or ^H:
bind -M $_pisces_bind_mode \b _pisces_backspace
# Terminal.app sends DEL code on ⌫:
bind -M $_pisces_bind_mode \177 _pisces_backspace
# overrides TAB to provide completion of vars before a closing '"'
bind -M $_pisces_bind_mode \t _pisces_complete
function _pisces_uninstall --on-event pisces_uninstall
# NOTE: won't work as expected if user has changed the mode after installation
set -l _pisces_bind_mode default
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end
for pair in $pisces_pairs
for c in (string split -- ',' $pair)
bind -e -M $_pisces_bind_mode $c
end
end
bind -M $_pisces_bind_mode \b backward-delete-char
bind -M $_pisces_bind_mode \177 backward-delete-char
bind -M $_pisces_bind_mode \t complete
set -e pisces_pairs
end

63
fish/conf.d/z.fish Normal file
View File

@ -0,0 +1,63 @@
if test -z "$Z_DATA"
if test -z "$XDG_DATA_HOME"
set -U Z_DATA_DIR "$HOME/.local/share/z"
else
set -U Z_DATA_DIR "$XDG_DATA_HOME/z"
end
set -U Z_DATA "$Z_DATA_DIR/data"
end
if test ! -e "$Z_DATA"
if test ! -e "$Z_DATA_DIR"
mkdir -p -m 700 "$Z_DATA_DIR"
end
touch "$Z_DATA"
end
if test -z "$Z_CMD"
set -U Z_CMD z
end
set -U ZO_CMD "$Z_CMD"o
if test ! -z $Z_CMD
function $Z_CMD -d "jump around"
__z $argv
end
end
if test ! -z $ZO_CMD
function $ZO_CMD -d "open target dir"
__z -d $argv
end
end
if not set -q Z_EXCLUDE
set -U Z_EXCLUDE "^$HOME\$"
else if contains $HOME $Z_EXCLUDE
# Workaround: migrate old default values to a regex (see #90).
set Z_EXCLUDE (string replace -r -- "^$HOME\$" '^'$HOME'$$' $Z_EXCLUDE)
end
# Setup completions once first
__z_complete
function __z_on_variable_pwd --on-variable PWD
__z_add
end
function __z_uninstall --on-event z_uninstall
functions -e __z_on_variable_pwd
functions -e $Z_CMD
functions -e $ZO_CMD
if test ! -z "$Z_DATA"
printf "To completely erase z's data, remove:\n" >/dev/stderr
printf "%s\n" "$Z_DATA" >/dev/stderr
end
set -e Z_CMD
set -e ZO_CMD
set -e Z_DATA
set -e Z_EXCLUDE
end

387
fish/config.fish Normal file
View File

@ -0,0 +1,387 @@
### EXPORT ###
set fish_greeting # Supresses fish's intro message
set TERM "xterm-256color" # Sets the terminal type
set -e fish_user_paths
set -U fish_user_paths $HOME/.local/bin $fish_user_paths
set -x -g LC_ALL es_ES.UTF-8
set -x -g LANG es_ES.UTF-8
oh-my-posh --init --shell fish --config ~/.poshthemes/negligible.omp.json | source
# Ensure fisherman and plugins are installed
if not test -f $HOME/.config/fish/functions/fisher.fish
echo "==> Fisherman not found. Installing."
curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
fisher
end
# set rust path
set -gx PATH "$HOME/.cargo/bin/" $PATH
# set thefuck alias
thefuck --alias | source
# Functions needed for !! and !$
function __history_previous_command
switch (commandline -t)
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end
function __history_previous_command_arguments
switch (commandline -t)
case "!"
commandline -t ""
commandline -f history-token-search-backward
case "*"
commandline -i '$'
end
end
# Function for creating a backup file
# ex: backup file.txt
# result: copies file as file.txt.bak
function backup --argument filename
cp $filename $filename.bak
end
# Function for copying files and directories, even recursively.
# ex: copy DIRNAME LOCATIONS
# result: copies the directory and all of its contents.
function copy
set count (count $argv | tr -d \n)
if test "$count" = 2; and test -d "$argv[1]"
set from (echo $argv[1] | trim-right /)
set to (echo $argv[2])
command cp -r $from $to
else
command cp $argv
end
end
# Function for printing a column (splits input on whitespace)
# ex: echo 1 2 3 | coln 3
# output: 3
function coln
while read -l input
echo $input | awk '{print $'$argv[1]'}'
end
end
# Function for printing a row
# ex: seq 3 | rown 3
# output: 3
function rown --argument index
sed -n "$index p"
end
# Function for ignoring the first 'n' lines
# ex: seq 10 | skip 5
# results: prints everything but the first 5 lines
function skip --argument n
tail +(math 1 + $n)
end
# Function for taking the first 'n' lines
# ex: seq 10 | take 5
# results: prints only the first 5 lines
function take --argument number
head -$number
end
#Abbreviations Void Linux
abbr -a search xbps-query -Rs
abbr -a install sudo xbps-install -S
abbr -a update sudo xbps-install -Su
abbr -a remove sudo xbps-remove -R
abbr -a clean sudo xbps-remove -O
abbr -a reconf sudo xbps-reconfigure
abbr -a update-grub sudo grub-mkconfig -o /boot/grub/grub.cfg
abbr -a restricted 'cd /home/jose/Plantillas/void-linux/void-packages && grep -rl '^restricted=' srcpkgs/'
abbr -a services sudo sv status /var/service/*
abbr -a non-free 'xbps-query -Mi --repo=https://alpha.de.repo.voidlinux.org/current/nonfree -s \*'
abbr -a doit 'source ~/.config/fish/config.fish && topgrade && sudo xbps-remove -O && hblock && curl -sL "https://raw.githubusercontent.com/pystardust/ytfzf/master/ytfzf" | sudo tee /usr/local/bin/ytfzf >/dev/null && sudo chmod 755 /usr/local/bin/ytfzf && clear'
abbr -a void cd /home/jose/Plantillas/void-linux/void-packages
abbr -a mklive cd /home/jose/Plantillas/void-linux/void-mklive
abbr -a ignpa 'echo "ignorepkg=pulseaudio" | sudo tee -a /etc/xbps.d/XX-ignore.conf'
abbr -a etcher 'cd ~/Plantillas/varios/etcher && npm start'
abbr -a goodies 'cd ~/Plantillas/void-linux/void-goodies && git pull'
abbr -a xanmod 'cd ~/Plantillas/void-linux/xanmod/void-packages && git pull'
abbr -a nvoid 'cd ~/Plantillas/void-linux/nvoid && git pull'
abbr -a git-update 'cd ~/Plantillas/void-linux/void-packages && git pull && cd ~/Plantillas/void-linux/void-mklive && git pull'
abbr -a ymir cd ~/Plantillas/void-linux/ymir-linux/void-packages
abbr -a ymirp 'cd ~/Plantillas/void-linux/ymir-linux/void-packages && git pull'
abbr -a voidp 'git clone git://github.com/void-linux/void-packages.git && xbpsbb'
abbr -a agar cd ~/Público/AgarimOS/
# Git
abbr -a addup git add -u
abbr -a addall git add .
abbr -a branch git branch
abbr -a checkout git checkout
abbr -a clone git clone
abbr -a commit git commit -m
abbr -a fetch git fetch
abbr -a pull git pull origin
abbr -a push git push origin
abbr -a tag git tag
abbr -a newtag git tag -a
# Alias's for multiple directory listing commands
abbr -a la ls -Alh # show hidden files
abbr -a ls ls -aFh --color=always # add colors and file type extensions
abbr -a lx ls -lXBh # sort by extension
abbr -a lk ls -lSrh # sort by size
abbr -a lc ls -lcrh # sort by change time
abbr -a lu ls -lurh # sort by access time
abbr -a lr ls -lRh # recursive ls
abbr -a lt ls -ltrh # sort by date
alias lm='ls -alh |more' # pipe through 'more'
abbr -a lw ls -xAh # wide listing format
abbr -a ll ls -Fls # long listing format
abbr -a labc ls -lap #alphabetical sort
abbr -a lf ls -l | egrep -v '^d' # files only
abbr -a ldir ls -l | egrep '^d' # directories only
#youtube-dl
abbr -a yta-aac 'youtube-dl --extract-audio --audio-format aac'
abbr -a yta-best 'youtube-dl --extract-audio --audio-format best'
abbr -a yta-flac 'youtube-dl --extract-audio --audio-format flac'
abbr -a yta-m4a 'youtube-dl --extract-audio --audio-format m4a'
abbr -a yta-mp3 'youtube-dl --extract-audio --audio-format mp3'
abbr -a yta-opus 'youtube-dl --extract-audio --audio-format opus'
abbr -a yta-vorbis 'youtube-dl --extract-audio --audio-format vorbis'
abbr -a yta-wav 'youtube-dl --extract-audio --audio-format wav'
abbr ytv-best 'youtube-dl -f bestvideo+bestaudio'
# Corona
alias top10="curl 'https://corona-stats.online?top=10&source=2&minimal=true&emojis=true'"
alias top20="curl 'https://corona-stats.online?top=20&source=2&minimal=true&emojis=true'"
alias top30="curl 'https://corona-stats.online?top=30&source=2&minimal=true&emojis=true'"
alias top40="curl 'https://corona-stats.online?top=40&source=2&minimal=true&emojis=true'"
abbr -a coves curl -L covid19.trackercli.com/es
abbr -a covat curl -L covid19.trackercli.com/at
abbr -a covuk curl -L covid19.trackercli.com/gb
abbr -a covde curl -L covid19.trackercli.com/de
abbr -a covfr curl -L covid19.trackercli.com/fr
abbr -a covit curl -L covid19.trackercli.com/it
abbr -a covbe curl -L covid19.trackercli.com/be
abbr -a covnl curl -L covid19.trackercli.com/nl
abbr -a covsk curl -L covid19.trackercli.com/sk
abbr -a covru curl -L covid19.trackercli.com/ru
abbr -a covpl curl -L covid19.trackercli.com/pl
abbr -a covpt curl -L covid19.trackercli.com/pt
abbr -a covcz curl -L covid19.trackercli.com/cz
abbr -a covus curl -L covid19.trackercli.com/us
abbr -a covhr curl -L covid19.trackercli.com/hr
abbr -a covrs curl -L covid19.trackercli.com/rs
abbr -a covch curl -L covid19.trackercli.com/ch
abbr -a covil curl -L covid19.trackercli.com/il
# I am lazy
abbr -a .. cd ..
abbr -a ... cd ../..
abbr -a .... cd ../../..
abbr -a ..... cd ../../../..
abbr -a ...... cd ../../../../..
abbr -a descargas cd /home/jose/Descargas
abbr -a videos cd /home/jose/Vídeos
abbr -a documentos cd /home/jose/Documentos
abbr -a musica cd /home/jose/Música
abbr -a themes d /usr/share/themes
abbr -a fonts cd /usr/share/fonts
abbr -a icons cd /usr/share/icons
abbr -a trash 'sudo rm -rf ~/.local/share/Trash/*'
abbr -a npmu 'sudo npm upgrade -g npm'
abbr -a nzsh nano ~/.config/fish/config.fish
abbr -a sce source ~/.config/fish/config.fish
abbr -a del rm -rf
abbr -a sdel sudo rm -rf
abbr -a ft fc-cache -f -v
abbr -a kzsh kate ~/.config/fish/config.fish
abbr -a probe 'sudo -E hw-probe -all -upload'
abbr -a fzsh featherpad ~/.config/fish/config.fish
abbr -a npmaf 'npm audit fix'
abbr -a ter sensors
abbr -a diff colordiff
abbr -a untar tar -zxvf
abbr -a multitail multitail --no-repeat -c
abbr -a loc locate
abbr -a lca lsd -lA
abbr -a vi vim
abbr -a mount mount |column -t
abbr -a chshb chsh -s /bin/bash
abbr -a chshz chsh -s /bin/zsh
abbr -a userlist cut -d: -f1 /etc/passwd
abbr -a bat upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep --color=never -E "state|to\ full|percentage"
abbr -a inf kinfocenter
abbr -a cl clear
abbr -a who whoami
abbr -a cc sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" # Clear System Cache
abbr -a spt speedtest-cli
abbr -a wifi wirelessNetworksInRange
#Inxi
abbr -a mac inxi -zv8
abbr -a weather inxi -wxxx
abbr -a machine inxi -Fxxxrza
# Kitty
abbr -a icat kitty +kitten icat
abbr -a d kitty +kitten diff
abbr -a clip kitty +kitten clipboard
abbr -a kittyc nano ~/.config/kitty/kitty.conf
abbr -a kittys nano ~/.config/kitty/settings.conf
abbr -a kittyf nano ~/.config/kitty/font.conf
abbr -a kittyk nano ~/.config/kitty/keybindings.conf
abbr -a kittyb nano ~/.config/kitty/bell.conf
abbr -a kittycu nano ~/.config/kitty/cursor.conf
abbr -a kittym nano ~/.config/kitty/mouse.conf
abbr -a kittyp nano ~/.config/kitty/performance.conf
abbr -a kittysc nano ~/.config/kitty/scrollback.conf
abbr -a kittyt nano ~/.config/kitty/tab.conf
abbr -a kittyw nano ~/.config/kitty/window.conf
#Ricing
abbr -a nerdfetcho 'curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/master/nerdfetch | sh'
abbr -a pipesa cpipes -p30 -r1
abbr -a pipesb cpipes -p100 -r0 -i1
abbr -a pman colorscript -e 30
abbr -a skull colorscript -e 33
abbr -a spaceinvaders colorscript -e 38
abbr -a clock tty-clock -c
#Ytfzf
abbr -a showme ytfzf -t
abbr -a ytfzfi 'curl -sL "https://raw.githubusercontent.com/pystardust/ytfzf/master/ytfzf" | sudo tee /usr/local/bin/ytfzf >/dev/null && sudo chmod 755 /usr/local/bin/ytfzf'
#Common mistakes
abbr -a cd.. cd ..
abbr -a pdw pwd
abbr a isntall install
#Other aliases
# reboot / halt / poweroff
abbr -a reboot sudo /sbin/reboot
abbr -a poweroff sudo /sbin/poweroff
abbr -a halt sudo /sbin/halt
abbr -a shutdown sudo /sbin/shutdown
# alias chmod commands
abbr -a mx chmod a+x
abbr -a 000 chmod -R 000
abbr -a 644 chmod -R 644
abbr -a 666 chmod -R 666
abbr -a 755 chmod -R 755
abbr -a 777 chmod -R 777
# Search command line history
abbr -a h 'history | grep'
abbr -a tree tree -CAhF --dirsfirst
abbr -a treed tree -CAFd
abbr -a mountedinfo df -hT
# Remove a directory and all files
abbr -a rmd /bin/rm --recursive --force --verbose
# Stop after sending count ECHO_REQUEST packets #
abbr -a ping ping -c 5
# Do not wait interval 1 second, go fast #
abbr -a fastping ping -c 100 -s.2
## shortcut for iptables and pass it via sudo#
abbr -a ipt sudo /sbin/iptables
# display all rules #
abbr -a iptlist sudo /sbin/iptables -L -n -v --line-numbers
abbr -a iptlistin sudo /sbin/iptables -L INPUT -n -v --line-numbers
abbr -a iptlistout sudo /sbin/iptables -L OUTPUT -n -v --line-numbers
abbr -a iptlistfw sudo /sbin/iptables -L FORWARD -n -v --line-numbers
abbr -a firewall iptlist
# do not delete / or prompt if deleting more than 3 files at a time #
abbr -a rm rm -I --preserve-root
# get web server headers #
abbr -a header curl -I
# find out if remote server supports gzip / mod_deflate or not #
abbr -a headerc curl -I --compress
# confirmation #
abbr -a mv mv -i
abbr -a cp cp -i
abbr -a ln ln -i
# Parenting changing perms on / #
abbr -a chown chown --preserve-root
abbr -a chmod chmod --preserve-root
abbr -a chgrp chgrp --preserve-root
## pass options to free ##
abbr -a meminfo free -m -l -t
## get top process eating memory
abbr -a psmem 'ps auxf | sort -nr -k 4'
abbr -a psmem10 'ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
abbr -a pscpu 'ps auxf | sort -nr -k 3'
abbr -a pscpu10 'ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
abbr -a cpuinfo lscpu
## get GPU ram on desktop / laptop##
abbr -a gpumeminfo 'grep -i --color memory /var/log/Xorg.0.log'
# become root #
abbr -a root sudo -i
abbr -a su sudo -i
# Time
abbr -a now 'date +"%T"'
abbr -a nowtime now
abbr -a nowdate 'date +"%d-%m-%Y"'
# make directory and any parent directories needed
abbr -a mkdir mkdir -p
abbr -a smkdir sudo mkdir -p
# Give less options to man
set MANPAGER less -s -M +Gg
## this one saved by butt so many times ##
abbr -a wget wget -c
abbr -a path 'echo -e ${PATH//:/\\n}'
# make common commands easier to read for humans
abbr -a df df -Tha --total
abbr -a du du -ach | sort -h
abbr -a free free -mth
# custom cmatrix
abbr -a cmatrix cmatrix -bC blue
# search processes (find PID easily)
abbr -a psg 'ps aux | grep -v grep | grep -i -e VSZ -e'
# show all processes
abbr -a psf ps auxfww
# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
#curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/master/nerdfetch | sh
nerdfetch

379
fish/config.fish.bak Normal file
View File

@ -0,0 +1,379 @@
### EXPORT ###
set fish_greeting # Supresses fish's intro message
set TERM "xterm-256color" # Sets the terminal type
set -e fish_user_paths
set -U fish_user_paths $HOME/.local/bin $fish_user_paths
oh-my-posh --init --shell fish --config ~/.poshthemes/iterm2.omp.json | source
# set rust path
set -gx PATH "$HOME/.cargo/bin/" $PATH
# set thefuck alias
thefuck --alias | source
# Functions needed for !! and !$
function __history_previous_command
switch (commandline -t)
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end
function __history_previous_command_arguments
switch (commandline -t)
case "!"
commandline -t ""
commandline -f history-token-search-backward
case "*"
commandline -i '$'
end
end
# Function for creating a backup file
# ex: backup file.txt
# result: copies file as file.txt.bak
function backup --argument filename
cp $filename $filename.bak
end
# Function for copying files and directories, even recursively.
# ex: copy DIRNAME LOCATIONS
# result: copies the directory and all of its contents.
function copy
set count (count $argv | tr -d \n)
if test "$count" = 2; and test -d "$argv[1]"
set from (echo $argv[1] | trim-right /)
set to (echo $argv[2])
command cp -r $from $to
else
command cp $argv
end
end
# Function for printing a column (splits input on whitespace)
# ex: echo 1 2 3 | coln 3
# output: 3
function coln
while read -l input
echo $input | awk '{print $'$argv[1]'}'
end
end
# Function for printing a row
# ex: seq 3 | rown 3
# output: 3
function rown --argument index
sed -n "$index p"
end
# Function for ignoring the first 'n' lines
# ex: seq 10 | skip 5
# results: prints everything but the first 5 lines
function skip --argument n
tail +(math 1 + $n)
end
# Function for taking the first 'n' lines
# ex: seq 10 | take 5
# results: prints only the first 5 lines
function take --argument number
head -$number
end
#Abbreviations Void Linux
abbr -a search xbps-query -Rs
abbr -a install sudo xbps-install -S
abbr -a update sudo xbps-install -Su
abbr -a remove sudo xbps-remove -R
abbr -a clean sudo xbps-remove -O
abbr -a reconf sudo xbps-reconfigure
abbr -a update-grub sudo grub-mkconfig -o /boot/grub/grub.cfg
abbr -a restricted 'cd /home/jose/Plantillas/void-linux/void-packages && grep -rl '^restricted=' srcpkgs/'
abbr -a services sudo sv status /var/service/*
abbr -a non-free 'xbps-query -Mi --repo=https://alpha.de.repo.voidlinux.org/current/nonfree -s \*'
abbr -a doit 'source ~/.config/fish/config.fish && topgrade && sudo xbps-remove -O && hblock && curl -sL "https://raw.githubusercontent.com/pystardust/ytfzf/master/ytfzf" | sudo tee /usr/local/bin/ytfzf >/dev/null && sudo chmod 755 /usr/local/bin/ytfzf && clear'
abbr -a void cd /home/jose/Plantillas/void-linux/void-packages
abbr -a mklive cd /home/jose/Plantillas/void-linux/void-mklive
abbr -a ignpa 'echo "ignorepkg=pulseaudio" | sudo tee -a /etc/xbps.d/XX-ignore.conf'
abbr -a etcher 'cd ~/Plantillas/varios/etcher && npm start'
abbr -a goodies 'cd ~/Plantillas/void-linux/void-goodies && git pull'
abbr -a xanmod 'cd ~/Plantillas/void-linux/xanmod/void-packages && git pull'
abbr -a nvoid 'cd ~/Plantillas/void-linux/nvoid && git pull'
abbr -a git-update 'cd ~/Plantillas/void-linux/void-packages && git pull && cd ~/Plantillas/void-linux/void-mklive && git pull'
abbr -a ymir cd ~/Plantillas/void-linux/ymir-linux/void-packages
abbr -a ymirp 'cd ~/Plantillas/void-linux/ymir-linux/void-packages && git pull'
abbr -a voidp 'git clone git://github.com/void-linux/void-packages.git && xbpsbb'
abbr -a agar cd ~/Público/AgarimOS/
# Git
abbr -a addup git add -u
abbr -a addall git add .
abbr -a branch git branch
abbr -a checkout git checkout
abbr -a clone git clone
abbr -a commit git commit -m
abbr -a fetch git fetch
abbr -a pull git pull origin
abbr -a push git push origin
abbr -a tag git tag
abbr -a newtag git tag -a
#youtube-dl
abbr -a yta-aac 'youtube-dl --extract-audio --audio-format aac'
abbr -a yta-best 'youtube-dl --extract-audio --audio-format best'
abbr -a yta-flac 'youtube-dl --extract-audio --audio-format flac'
abbr -a yta-m4a 'youtube-dl --extract-audio --audio-format m4a'
abbr -a yta-mp3 'youtube-dl --extract-audio --audio-format mp3'
abbr -a yta-opus 'youtube-dl --extract-audio --audio-format opus'
abbr -a yta-vorbis 'youtube-dl --extract-audio --audio-format vorbis'
abbr -a yta-wav 'youtube-dl --extract-audio --audio-format wav'
abbr ytv-best 'youtube-dl -f bestvideo+bestaudio'
# Corona
alias top10="curl 'https://corona-stats.online?top=10&source=2&minimal=true&emojis=true'"
alias top20="curl 'https://corona-stats.online?top=20&source=2&minimal=true&emojis=true'"
alias top30="curl 'https://corona-stats.online?top=30&source=2&minimal=true&emojis=true'"
alias top40="curl 'https://corona-stats.online?top=40&source=2&minimal=true&emojis=true'"
abbr -a coves curl -L covid19.trackercli.com/es
abbr -a covat curl -L covid19.trackercli.com/at
abbr -a covuk curl -L covid19.trackercli.com/gb
abbr -a covde curl -L covid19.trackercli.com/de
abbr -a covfr curl -L covid19.trackercli.com/fr
abbr -a covit curl -L covid19.trackercli.com/it
abbr -a covbe curl -L covid19.trackercli.com/be
abbr -a covnl curl -L covid19.trackercli.com/nl
abbr -a covsk curl -L covid19.trackercli.com/sk
abbr -a covru curl -L covid19.trackercli.com/ru
abbr -a covpl curl -L covid19.trackercli.com/pl
abbr -a covpt curl -L covid19.trackercli.com/pt
abbr -a covcz curl -L covid19.trackercli.com/cz
abbr -a covus curl -L covid19.trackercli.com/us
abbr -a covhr curl -L covid19.trackercli.com/hr
abbr -a covrs curl -L covid19.trackercli.com/rs
abbr -a covch curl -L covid19.trackercli.com/ch
abbr -a covil curl -L covid19.trackercli.com/il
# Alias's for multiple directory listing commands
abbr -a la ls -Alh # show hidden files
abbr -a ls ls -aFh --color=always # add colors and file type extensions
abbr -a lx ls -lXBh # sort by extension
abbr -a lk ls -lSrh # sort by size
abbr -a lc ls -lcrh # sort by change time
abbr -a lu ls -lurh # sort by access time
abbr -a lr ls -lRh # recursive ls
abbr -a lt ls -ltrh # sort by date
abbr -a lm ls -alh |more # pipe through 'more'
abbr -a lw ls -xAh # wide listing format
abbr -a ll ls -Fls # long listing format
abbr -a labc ls -lap #alphabetical sort
abbr -a lf ls -l | egrep -v '^d' # files only
abbr -a ldir ls -l | egrep '^d' # directories only
# I am lazy
abbr -a .. cd ..
abbr -a ... cd ../..
abbr -a .... cd ../../..
abbr -a ..... cd ../../../..
abbr -a ...... cd ../../../../..
abbr -a descargas cd /home/jose/Descargas
abbr -a videos cd /home/jose/Vídeos
abbr -a documentos cd /home/jose/Documentos
abbr -a musica cd /home/jose/Música
abbr -a themes d /usr/share/themes
abbr -a fonts cd /usr/share/fonts
abbr -a icons cd /usr/share/icons
abbr -a trash 'sudo rm -rf ~/.local/share/Trash/*'
abbr -a npmu 'sudo npm upgrade -g npm'
abbr -a nzsh nano ~/.config/fish/config.fish
abbr -a sce source ~/.config/fish/config.fish
abbr -a del rm -rf
abbr -a sdel sudo rm -rf
abbr -a ft fc-cache -f -v
abbr -a kzsh kate ~/.config/fish/config.fish
abbr -a probe 'sudo -E hw-probe -all -upload'
abbr -a fzsh featherpad ~/.config/fish/config.fish
abbr -a npmaf 'npm audit fix'
abbr -a ter sensors
abbr -a diff colordiff
abbr -a untar tar -zxvf
abbr -a multitail multitail --no-repeat -c
abbr -a loc locate
abbr -a lca lsd -lA
abbr -a vi vim
abbr -a mount mount |column -t
abbr -a chshb chsh -s /bin/bash
abbr -a chshz chsh -s /bin/zsh
abbr -a userlist cut -d: -f1 /etc/passwd
abbr -a bat upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep --color=never -E "state|to\ full|percentage"
abbr -a inf kinfocenter
abbr -a cl clear
abbr -a who whoami
abbr -a cc sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" # Clear System Cache
abbr -a spt speedtest-cli
abbr -a wifi wirelessNetworksInRange
#Inxi
abbr -a mac inxi -zv8
abbr -a weather inxi -wxxx
abbr -a machine inxi -Fxxxrza
# Kitty
abbr -a icat kitty +kitten icat
abbr -a d kitty +kitten diff
abbr -a clip kitty +kitten clipboard
abbr -a kittyc nano ~/.config/kitty/kitty.conf
abbr -a kittys nano ~/.config/kitty/settings.conf
abbr -a kittyf nano ~/.config/kitty/font.conf
abbr -a kittyk nano ~/.config/kitty/keybindings.conf
abbr -a kittyb nano ~/.config/kitty/bell.conf
abbr -a kittycu nano ~/.config/kitty/cursor.conf
abbr -a kittym nano ~/.config/kitty/mouse.conf
abbr -a kittyp nano ~/.config/kitty/performance.conf
abbr -a kittysc nano ~/.config/kitty/scrollback.conf
abbr -a kittyt nano ~/.config/kitty/tab.conf
abbr -a kittyw nano ~/.config/kitty/window.conf
#Ricing
abbr -a nerdfetch 'curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/master/nerdfetch | sh'
abbr -a pipesa cpipes -p30 -r1
abbr -a pipesb cpipes -p100 -r0 -i1
abbr -a pman colorscript -e 30
abbr -a skull colorscript -e 33
abbr -a spaceinvaders colorscript -e 38
abbr -a clock tty-clock -c
#Ytfzf
abbr -a showme ytfzf -t
abbr -a ytfzfi 'curl -sL "https://raw.githubusercontent.com/pystardust/ytfzf/master/ytfzf" | sudo tee /usr/local/bin/ytfzf >/dev/null && sudo chmod 755 /usr/local/bin/ytfzf'
#Common mistakes
abbr -a cd.. cd ..
abbr -a pdw pwd
abbr a isntall install
#Other aliases
# reboot / halt / poweroff
abbr -a reboot sudo /sbin/reboot
abbr -a poweroff sudo /sbin/poweroff
abbr -a halt sudo /sbin/halt
abbr -a shutdown sudo /sbin/shutdown
# alias chmod commands
abbr -a mx chmod a+x
abbr -a 000 chmod -R 000
abbr -a 644 chmod -R 644
abbr -a 666 chmod -R 666
abbr -a 755 chmod -R 755
abbr -a 777 chmod -R 777
# Search command line history
abbr -a h 'history | grep'
abbr -a tree tree -CAhF --dirsfirst
abbr -a treed tree -CAFd
abbr -a mountedinfo df -hT
# cd into the old directory
abbr -a bd cd "$OLDPWD"
# Remove a directory and all files
abbr -a rmd /bin/rm --recursive --force --verbose
# Stop after sending count ECHO_REQUEST packets #
abbr -a ping ping -c 5
# Do not wait interval 1 second, go fast #
abbr -a fastping ping -c 100 -s.2
## shortcut for iptables and pass it via sudo#
abbr -a ipt sudo /sbin/iptables
# display all rules #
abbr -a iptlist sudo /sbin/iptables -L -n -v --line-numbers
abbr -a iptlistin sudo /sbin/iptables -L INPUT -n -v --line-numbers
abbr -a iptlistout sudo /sbin/iptables -L OUTPUT -n -v --line-numbers
abbr -a iptlistfw sudo /sbin/iptables -L FORWARD -n -v --line-numbers
abbr -a firewall iptlist
# do not delete / or prompt if deleting more than 3 files at a time #
abbr -a rm rm -I --preserve-root
# get web server headers #
abbr -a header curl -I
# find out if remote server supports gzip / mod_deflate or not #
abbr -a headerc curl -I --compress
# confirmation #
abbr -a mv mv -i
abbr -a cp cp -i
abbr -a ln ln -i
# Parenting changing perms on / #
abbr -a chown chown --preserve-root
abbr -a chmod chmod --preserve-root
abbr -a chgrp chgrp --preserve-root
## pass options to free ##
abbr -a meminfo free -m -l -t
## get top process eating memory
abbr -a psmem 'ps auxf | sort -nr -k 4'
abbr -a psmem10 'ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
abbr -a pscpu 'ps auxf | sort -nr -k 3'
abbr -a pscpu10 'ps auxf | sort -nr -k 3 | head -10'
## Get server cpu info ##
abbr -a cpuinfo lscpu
## get GPU ram on desktop / laptop##
abbr -a gpumeminfo 'grep -i --color memory /var/log/Xorg.0.log'
# become root #
abbr -a root sudo -i
abbr -a su sudo -i
# Time
abbr -a now 'date +"%T"'
abbr -a nowtime now
abbr -a nowdate 'date +"%d-%m-%Y"'
# make directory and any parent directories needed
abbr -a mkdir mkdir -p
abbr -a smkdir sudo mkdir -p
# Give less options to man
set MANPAGER less -s -M +Gg
## this one saved by butt so many times ##
abbr -a wget wget -c
abbr -a path 'echo -e ${PATH//:/\\n}'
# make common commands easier to read for humans
abbr -a df df -Tha --total
abbr -a du du -ach | sort -h
abbr -a free free -mth
# custom cmatrix
abbr -a cmatrix cmatrix -bC blue
# search processes (find PID easily)
abbr -a psg 'ps aux | grep -v grep | grep -i -e VSZ -e'
# show all processes
abbr -a psf ps auxfww
# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
neofetch

9
fish/fish_plugins Normal file
View File

@ -0,0 +1,9 @@
jorgebucaran/fisher
jethrokuan/z
jethrokuan/fzf
franciscolourenco/done
laughedelic/pisces
shinriyo/breeze
gazorby/fish-abbreviation-tips
Gazorby/fish-finders
edc/bass

300
fish/fish_variables Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
function __abbr_tips_bind_newline
if test $__abbr_tips_used != 1
if abbr -q -- (string trim -- (commandline))
set -g __abbr_tips_used 1
else
set -g __abbr_tips_used 0
end
end
commandline -f 'execute'
end

View File

@ -0,0 +1,11 @@
function __abbr_tips_bind_space
commandline -i " "
if test $__abbr_tips_used != 1
if abbr -q -- (string trim -- (commandline))
set -g __abbr_tips_used 1
else
set -g __abbr_tips_used 0
end
end
commandline -f 'expand-abbr'
end

View File

@ -0,0 +1,24 @@
function __abbr_tips_init -d "Initialize abbreviations variables for fish-abbr-tips"
set -e __ABBR_TIPS_KEYS
set -e __ABBR_TIPS_VALUES
set -Ux __ABBR_TIPS_KEYS
set -Ux __ABBR_TIPS_VALUES
set -l i 1
set -l abb (string replace -r '.*-- ' '' -- (abbr -s))
while test $i -le (count $abb)
set -l current_abb (string split -m1 ' ' "$abb[$i]")
set -a __ABBR_TIPS_KEYS "$current_abb[1]"
set -a __ABBR_TIPS_VALUES (string trim -c '\'' "$current_abb[2]")
set i (math $i + 1)
end
set -l i 1
set -l abb (string replace -r '.*-- ' '' -- (alias -s))
while test $i -le (count $abb)
set -l current_abb (string split -m2 ' ' "$abb[$i]")
set -a __ABBR_TIPS_KEYS "a__$current_abb[2]"
set -a __ABBR_TIPS_VALUES (string trim -c '\'' "$current_abb[3]")
set i (math $i + 1)
end
end

138
fish/functions/__bass.py Normal file
View File

@ -0,0 +1,138 @@
"""
To be used with a companion fish function like this:
function refish
set -l _x (python /tmp/bass.py source ~/.nvm/nvim.sh ';' nvm use iojs); source $_x; and rm -f $_x
end
"""
from __future__ import print_function
import json
import os
import signal
import subprocess
import sys
import traceback
BASH = 'bash'
FISH_READONLY = [
'PWD', 'SHLVL', 'history', 'pipestatus', 'status', 'version',
'FISH_VERSION', 'fish_pid', 'hostname', '_', 'fish_private_mode'
]
IGNORED = [
'PS1', 'XPC_SERVICE_NAME'
]
def ignored(name):
if name == 'PWD': # this is read only, but has special handling
return False
# ignore other read only variables
if name in FISH_READONLY:
return True
if name in IGNORED or name.startswith("BASH_FUNC"):
return True
return False
def escape(string):
# use json.dumps to reliably escape quotes and backslashes
return json.dumps(string).replace(r'$', r'\$')
def escape_identifier(word):
return escape(word.replace('?', '\\?'))
def comment(string):
return '\n'.join(['# ' + line for line in string.split('\n')])
def gen_script():
# Use the following instead of /usr/bin/env to read environment so we can
# deal with multi-line environment variables (and other odd cases).
env_reader = "%s -c 'import os,json; print(json.dumps({k:v for k,v in os.environ.items()}))'" % (sys.executable)
args = [BASH, '-c', env_reader]
output = subprocess.check_output(args, universal_newlines=True)
old_env = output.strip()
pipe_r, pipe_w = os.pipe()
if sys.version_info >= (3, 4):
os.set_inheritable(pipe_w, True)
command = 'eval $1 && ({}; alias) >&{}'.format(
env_reader,
pipe_w
)
args = [BASH, '-c', command, 'bass', ' '.join(sys.argv[1:])]
p = subprocess.Popen(args, universal_newlines=True, close_fds=False)
os.close(pipe_w)
with os.fdopen(pipe_r) as f:
new_env = f.readline()
alias_str = f.read()
if p.wait() != 0:
raise subprocess.CalledProcessError(
returncode=p.returncode,
cmd=' '.join(sys.argv[1:]),
output=new_env + alias_str
)
new_env = new_env.strip()
old_env = json.loads(old_env)
new_env = json.loads(new_env)
script_lines = []
for k, v in new_env.items():
if ignored(k):
continue
v1 = old_env.get(k)
if not v1:
script_lines.append(comment('adding %s=%s' % (k, v)))
elif v1 != v:
script_lines.append(comment('updating %s=%s -> %s' % (k, v1, v)))
# process special variables
if k == 'PWD':
script_lines.append('cd %s' % escape(v))
continue
else:
continue
if k == 'PATH':
value = ' '.join([escape(directory)
for directory in v.split(':')])
else:
value = escape(v)
script_lines.append('set -g -x %s %s' % (k, value))
for var in set(old_env.keys()) - set(new_env.keys()):
script_lines.append(comment('removing %s' % var))
script_lines.append('set -e %s' % var)
script = '\n'.join(script_lines)
alias_lines = []
for line in alias_str.splitlines():
_, rest = line.split(None, 1)
k, v = rest.split("=", 1)
alias_lines.append("alias " + escape_identifier(k) + "=" + v)
alias = '\n'.join(alias_lines)
return script + '\n' + alias
script_file = os.fdopen(3, 'w')
if not sys.argv[1:]:
print('__bass_usage', file=script_file, end='')
sys.exit(0)
try:
script = gen_script()
except subprocess.CalledProcessError as e:
sys.exit(e.returncode)
except Exception:
print('Bass internal error!', file=sys.stderr)
raise # traceback will output to stderr
except KeyboardInterrupt:
signal.signal(signal.SIGINT, signal.SIG_DFL)
os.kill(os.getpid(), signal.SIGINT)
else:
script_file.write(script)

View File

@ -0,0 +1,7 @@
function __breeze_variables
# This function doesn't need to do anything, we just have this file here to ensure autoloading only sets $arr & $op up once
end
# for global
set -g -x arr ""
set -g -x op ""

View File

@ -0,0 +1,49 @@
function __fzf_cd -d "Change directory"
set -l commandline (__fzf_parse_commandline)
set -l dir $commandline[1]
set -l fzf_query $commandline[2]
if not type -q argparse
# Fallback for fish shell version < 2.7
function argparse
functions -e argparse # deletes itself
end
if contains -- --hidden $argv; or contains -- -h $argv
set _flag_hidden "yes"
end
end
# Fish shell version >= v2.7, use argparse
set -l options "h/hidden"
argparse $options -- $argv
set -l COMMAND
set -q FZF_CD_COMMAND
or set -l FZF_CD_COMMAND "
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
-o -type d -print 2> /dev/null | sed 's@^\./@@'"
set -q FZF_CD_WITH_HIDDEN_COMMAND
or set -l FZF_CD_WITH_HIDDEN_COMMAND "
command find -L \$dir \
\\( -path '*/\\.git*' -o -fstype 'dev' -o -fstype 'proc' \\) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3-"
if set -q _flag_hidden
set COMMAND $FZF_CD_WITH_HIDDEN_COMMAND
else
set COMMAND $FZF_CD_COMMAND
end
eval "$COMMAND | "(__fzfcmd)" +m $FZF_DEFAULT_OPTS $FZF_CD_OPTS --query \"$fzf_query\"" | read -l select
if not test -z "$select"
builtin cd "$select"
# Remove last token from commandline.
commandline -t ""
end
commandline -f repaint
end

View File

@ -0,0 +1,168 @@
##
# Use fzf as fish completion widget.
#
#
# When FZF_COMPLETE variable is set, fzf is used as completion
# widget for the fish shell by binding the TAB key.
#
# FZF_COMPLETE can have some special numeric values:
#
# `set FZF_COMPLETE 0` basic widget accepts with TAB key
# `set FZF_COMPLETE 1` extends 0 with candidate preview window
# `set FZF_COMPLETE 2` same as 1 but TAB walks on candidates
# `set FZF_COMPLETE 3` multi TAB selection, RETURN accepts selected ones.
#
# Any other value of FZF_COMPLETE is given directly as options to fzf.
#
# If you prefer to set more advanced options, take a look at the
# `__fzf_complete_opts` function and override that in your environment.
# modified from https://github.com/junegunn/fzf/wiki/Examples-(fish)#completion
function __fzf_complete -d 'fzf completion and print selection back to commandline'
# As of 2.6, fish's "complete" function does not understand
# subcommands. Instead, we use the same hack as __fish_complete_subcommand and
# extract the subcommand manually.
set -l cmd (commandline -co) (commandline -ct)
switch $cmd[1]
case env sudo
for i in (seq 2 (count $cmd))
switch $cmd[$i]
case '-*'
case '*=*'
case '*'
set cmd $cmd[$i..-1]
break
end
end
end
set -l cmd_lastw $cmd[-1]
set cmd (string join -- ' ' $cmd)
set -l initial_query ''
test -n "$cmd_lastw"; and set initial_query --query="$cmd_lastw"
set -l complist (complete -C$cmd)
set -l result
# do nothing if there is nothing to select from
test -z "$complist"; and return
set -l compwc (echo $complist | wc -w)
if test $compwc -eq 1
# if there is only one option dont open fzf
set result "$complist"
else
set -l query
string join -- \n $complist \
| eval (__fzfcmd) (string escape --no-quoted -- $initial_query) --print-query (__fzf_complete_opts) \
| cut -f1 \
| while read -l r
# first line is the user entered query
if test -z "$query"
set query $r
# rest of lines are selected candidates
else
set result $result $r
end
end
# exit if user canceled
if test -z "$query" ;and test -z "$result"
commandline -f repaint
return
end
# if user accepted but no candidate matches, use the input as result
if test -z "$result"
set result $query
end
end
set prefix (string sub -s 1 -l 1 -- (commandline -t))
for i in (seq (count $result))
set -l r $result[$i]
switch $prefix
case "'"
commandline -t -- (string escape -- $r)
case '"'
if string match '*"*' -- $r >/dev/null
commandline -t -- (string escape -- $r)
else
commandline -t -- '"'$r'"'
end
case '~'
commandline -t -- (string sub -s 2 (string escape -n -- $r))
case '*'
commandline -t -- $r
end
[ $i -lt (count $result) ]; and commandline -i ' '
end
commandline -f repaint
end
function __fzf_complete_opts_common
if set -q FZF_DEFAULT_OPTS
echo $FZF_DEFAULT_OPTS
end
echo --cycle --reverse --inline-info
end
function __fzf_complete_opts_tab_accepts
echo --bind tab:accept,btab:cancel
end
function __fzf_complete_opts_tab_walks
echo --bind tab:down,btab:up
end
function __fzf_complete_opts_preview
set -l file (status -f)
echo --with-nth=1 --preview-window=right:wrap --preview="fish\ '$file'\ __fzf_complete_preview\ '{1}'\ '{2..}'"
end
test "$argv[1]" = "__fzf_complete_preview"; and __fzf_complete_preview $argv[2..3]
function __fzf_complete_opts_0 -d 'basic single selection with tab accept'
__fzf_complete_opts_common
echo --no-multi
__fzf_complete_opts_tab_accepts
end
function __fzf_complete_opts_1 -d 'single selection with preview and tab accept'
__fzf_complete_opts_0
__fzf_complete_opts_preview
end
function __fzf_complete_opts_2 -d 'single selection with preview and tab walks'
__fzf_complete_opts_1
__fzf_complete_opts_tab_walks
end
function __fzf_complete_opts_3 -d 'multi selection with preview'
__fzf_complete_opts_common
echo --multi
__fzf_complete_opts_preview
end
function __fzf_complete_opts -d 'fzf options for fish tab completion'
switch $FZF_COMPLETE
case 0
__fzf_complete_opts_0
case 1
__fzf_complete_opts_1
case 2
__fzf_complete_opts_2
case 3
__fzf_complete_opts_3
case '*'
echo $FZF_COMPLETE
end
if set -q FZF_COMPLETE_OPTS
echo $FZF_COMPLETE_OPTS
end
end

View File

@ -0,0 +1,31 @@
function __fzf_complete_preview -d 'generate preview for completion widget.
argv[1] is the currently selected candidate in fzf
argv[2] is a string containing the rest of the output produced by `complete -Ccmd`
'
if test "$argv[2]" = "Redefine variable"
# show environment variables current value
set -l evar (echo $argv[1] | cut -d= -f1)
echo $argv[1]$$evar
else
echo $argv[1]
end
set -l path (string replace "~" $HOME -- $argv[1])
# list directories on preview
if test -d "$path"
eval $FZF_PREVIEW_DIR_CMD (string escape $path)
end
# show ten lines of non-binary files preview
if test -f "$path"; and grep -qI . "$path"
eval $FZF_PREVIEW_FILE_CMD (string escape $path)
end
# if fish knows about it, let it show info
type -q "$path" 2>/dev/null; and type -a "$path"
# show aditional data
echo $argv[2]
end

View File

@ -0,0 +1,29 @@
function __fzf_find_file -d "List files and folders"
set -l commandline (__fzf_parse_commandline)
set -l dir $commandline[1]
set -l fzf_query $commandline[2]
set -q FZF_FIND_FILE_COMMAND
or set -l FZF_FIND_FILE_COMMAND "
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | sed 's@^\./@@'"
begin
eval "$FZF_FIND_FILE_COMMAND | "(__fzfcmd) "-m $FZF_DEFAULT_OPTS $FZF_FIND_FILE_OPTS --query \"$fzf_query\"" | while read -l s; set results $results $s; end
end
if test -z "$results"
commandline -f repaint
return
else
commandline -t ""
end
for result in $results
commandline -it -- (string escape $result)
commandline -it -- " "
end
commandline -f repaint
end

View File

@ -0,0 +1,17 @@
function __fzf_get_dir -d 'Find the longest existing filepath from input string'
set dir $argv
# Strip all trailing slashes. Ignore if $dir is root dir (/)
if test (string length $dir) -gt 1
set dir (string replace -r '/*$' '' $dir)
end
# Iteratively check if dir exists and strip tail end of path
while test ! -d "$dir"
# If path is absolute, this can keep going until ends up at /
# If path is relative, this can keep going until entire input is consumed, dirname returns "."
set dir (dirname "$dir")
end
echo $dir
end

View File

@ -0,0 +1,63 @@
function __fzf_open -d "Open files and directories."
function __fzf_open_get_open_cmd -d "Find appropriate open command."
if type -q xdg-open
echo "xdg-open"
else if type -q open
echo "open"
end
end
set -l commandline (__fzf_parse_commandline)
set -l dir $commandline[1]
set -l fzf_query $commandline[2]
if not type -q argparse
set created_argparse
function argparse
functions -e argparse # deletes itself
end
if contains -- --editor $argv; or contains -- -e $argv
set _flag_editor "yes"
end
if contains -- --preview $argv; or contains -- -p $argv
set _flag_preview "yes"
end
end
set -l options "e/editor" "p/preview=?"
argparse $options -- $argv
set -l preview_cmd
if set -q FZF_ENABLE_OPEN_PREVIEW
set preview_cmd "--preview-window=right:wrap --preview='fish -c \"__fzf_complete_preview {}\"'"
end
set -q FZF_OPEN_COMMAND
or set -l FZF_OPEN_COMMAND "
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | sed 's@^\./@@'"
set -l select (eval "$FZF_OPEN_COMMAND | "(__fzfcmd) $preview_cmd "-m $FZF_DEFAULT_OPTS $FZF_OPEN_OPTS --query \"$fzf_query\"" | string escape)
# set how to open
set -l open_cmd
if set -q _flag_editor
set open_cmd "$EDITOR"
else
set open_cmd (__fzf_open_get_open_cmd)
if test -z "$open_cmd"
echo "Couldn't find appropriate open command to use. Do you have 'xdg-open' or 'open' installed?"; and return 1
end
end
set -l open_status 0
if not test -z "$select"
commandline "$open_cmd $select"; and commandline -f execute
set open_status $status
end
commandline -f repaint
return $open_status
end

View File

@ -0,0 +1,23 @@
function __fzf_parse_commandline -d 'Parse the current command line token and return split of existing filepath and rest of token'
# eval is used to do shell expansion on paths
set -l commandline (eval "printf '%s' "(commandline -t))
if test -z $commandline
# Default to current directory with no --query
set dir '.'
set fzf_query ''
else
set dir (__fzf_get_dir $commandline)
if test "$dir" = "." -a (string sub -l 1 $commandline) != '.'
# if $dir is "." but commandline is not a relative path, this means no file path found
set fzf_query $commandline
else
# Also remove trailing slash after dir, to "split" input properly
set fzf_query (string replace -r "^$dir/?" '' "$commandline")
end
end
echo $dir
echo $fzf_query
end

View File

@ -0,0 +1,6 @@
function __fzf_reverse_isearch
history merge
history -z | eval (__fzfcmd) --read0 --print0 --tiebreak=index --toggle-sort=ctrl-r $FZF_DEFAULT_OPTS $FZF_REVERSE_ISEARCH_OPTS -q '(commandline)' | read -lz result
and commandline -- $result
commandline -f repaint
end

View File

@ -0,0 +1,9 @@
function __fzfcmd
set -q FZF_TMUX; or set FZF_TMUX 0
set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%
if test $FZF_TMUX -eq 1
echo "fzf-tmux -d$FZF_TMUX_HEIGHT"
else
echo "fzf"
end
end

View File

@ -0,0 +1,3 @@
function __title_case -a string
echo $string | sed 's/^/ /;s/ [aA]/ A/g;s/ [bB]/ B/g;s/ [cC]/ C/g;s/ [dD]/ D/g;s/ [eE]/ E/g;s/ [fF]/ F/g;s/ [gG]/ G/g;s/ [hH]/ H/g;s/ [iI]/ I/g;s/ [jJ]/ J/g;s/ [kK]/ K/g;s/ [lL]/ L/g;s/ [mM]/ M/g;s/ [nN]/ N/g;s/ [oO]/ O/g;s/ [pP]/ P/g;s/ [qQ]/ Q/g;s/ [rR]/ R/g;s/ [sS]/ S/g;s/ [tT]/ T/g;s/ [uU]/ U/g;s/ [vV]/ V/g;s/ [wW]/ W/g;s/ [xX]/ X/g;s/ [yY]/ Y/g;s/ [zZ]/ Z/g;s/^.//'
end

177
fish/functions/__z.fish Normal file
View File

@ -0,0 +1,177 @@
function __z -d "Jump to a recent directory."
function __print_help -d "Print z help."
printf "Usage: $Z_CMD [-celrth] string1 string2...\n\n"
printf " -c --clean Removes directories that no longer exist from $Z_DATA\n"
printf " -d --dir Opens matching directory using system file manager.\n"
printf " -e --echo Prints best match, no cd\n"
printf " -l --list List matches and scores, no cd\n"
printf " -p --purge Delete all entries from $Z_DATA\n"
printf " -r --rank Search by rank\n"
printf " -t --recent Search by recency\n"
printf " -x --delete Removes the current directory from $Z_DATA\n"
printf " -h --help Print this help\n\n"
end
function __z_legacy_escape_regex
# taken from escape_string_pcre2 in fish
# used to provide compatibility with fish 2
for c in (string split '' $argv)
if contains $c (string split '' '.^$*+()?[{}\\|-]')
printf \\
end
printf '%s' $c
end
end
set -l options h/help c/clean e/echo l/list p/purge r/rank t/recent d/directory x/delete
argparse $options -- $argv
if set -q _flag_help
__print_help
return 0
else if set -q _flag_clean
__z_clean
printf "%s cleaned!\n" $Z_DATA
return 0
else if set -q _flag_purge
echo >$Z_DATA
printf "%s purged!\n" $Z_DATA
return 0
else if set -q _flag_delete
sed -i -e "\:^$PWD|.*:d" $Z_DATA
return 0
end
set -l typ
if set -q _flag_rank
set typ rank
else if set -q _flag_recent
set typ recent
end
set -l z_script '
function frecent(rank, time) {
dx = t-time
if( dx < 3600 ) return rank*4
if( dx < 86400 ) return rank*2
if( dx < 604800 ) return rank/2
return rank/4
}
function output(matches, best_match, common) {
# list or return the desired directory
if( list ) {
cmd = "sort -nr"
for( x in matches ) {
if( matches[x] ) {
printf "%-10s %s\n", matches[x], x | cmd
}
}
if( common ) {
printf "%-10s %s\n", "common:", common > "/dev/stderr"
}
} else {
if( common ) best_match = common
print best_match
}
}
function common(matches) {
# find the common root of a list of matches, if it exists
for( x in matches ) {
if( matches[x] && (!short || length(x) < length(short)) ) {
short = x
}
}
if( short == "/" ) return
for( x in matches ) if( matches[x] && index(x, short) != 1 ) {
return
}
return short
}
BEGIN {
hi_rank = ihi_rank = -9999999999
}
{
if( typ == "rank" ) {
rank = $2
} else if( typ == "recent" ) {
rank = $3 - t
} else rank = frecent($2, $3)
if( $1 ~ q ) {
matches[$1] = rank
} else if( tolower($1) ~ tolower(q) ) imatches[$1] = rank
if( matches[$1] && matches[$1] > hi_rank ) {
best_match = $1
hi_rank = matches[$1]
} else if( imatches[$1] && imatches[$1] > ihi_rank ) {
ibest_match = $1
ihi_rank = imatches[$1]
}
}
END {
# prefer case sensitive
if( best_match ) {
output(matches, best_match, common(matches))
} else if( ibest_match ) {
output(imatches, ibest_match, common(imatches))
}
}
'
set -l qs
for arg in $argv
set -l escaped $arg
if string escape --style=regex '' >/dev/null 2>&1 # use builtin escape if available
set escaped (string escape --style=regex $escaped)
else
set escaped (__z_legacy_escape_regex $escaped)
end
# Need to escape twice, see https://www.math.utah.edu/docs/info/gawk_5.html#SEC32
set escaped (string replace --all \\ \\\\ $escaped)
set qs $qs $escaped
end
set -l q (string join '.*' $qs)
if set -q _flag_list
# Handle list separately as it can print common path information to stderr
# which cannot be captured from a subcommand.
command awk -v t=(date +%s) -v list="list" -v typ="$typ" -v q="$q" -F "|" $z_script "$Z_DATA"
return
end
set target (command awk -v t=(date +%s) -v typ="$typ" -v q="$q" -F "|" $z_script "$Z_DATA")
if test "$status" -gt 0
return
end
if test -z "$target"
printf "'%s' did not match any results\n" "$argv"
return 1
end
if set -q _flag_echo
printf "%s\n" "$target"
else if set -q _flag_directory
if test -n "$ZO_METHOD"
type -q "$ZO_METHOD"; and "$ZO_METHOD" "$target"; and return $status
echo "Cannot open with ZO_METHOD set to $ZO_METHOD"; and return 1
else if test "$OS" = Windows_NT
# Be careful, in msys2, explorer always return 1
type -q explorer; and explorer "$target"
return 0
echo "Cannot open file explorer"
return 1
else
type -q xdg-open; and xdg-open "$target"; and return $status
type -q open; and open "$target"; and return $status
echo "Not sure how to open file manager"; and return 1
end
else
pushd "$target"
end
end

View File

@ -0,0 +1,49 @@
function __z_add -d "Add PATH to .z file"
test -n "$fish_private_mode"; and return 0
for i in $Z_EXCLUDE
if string match -r $i $PWD >/dev/null
return 0 #Path excluded
end
end
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
set -l path (string replace --all \\ \\\\ $PWD)
command awk -v path=$path -v now=(date +%s) -F "|" '
BEGIN {
rank[path] = 1
time[path] = now
}
$2 >= 1 {
if( $1 == path ) {
rank[$1] = $2 + 1
time[$1] = now
}
else {
rank[$1] = $2
time[$1] = $3
}
count += $2
}
END {
if( count > 1000 ) {
for( i in rank ) print i "|" 0.9*rank[i] "|" time[i] # aging
}
else for( i in rank ) print i "|" rank[i] "|" time[i]
}
' $Z_DATA 2>/dev/null >$tmpfile
if test ! -z "$Z_OWNER"
chown $Z_OWNER:(id -ng $Z_OWNER) $tmpfile
end
#
# Don't use redirection here as it can lead to a race condition where $Z_DATA is clobbered.
# Note: There is a still a possible race condition where an old version of $Z_DATA is
# read by one instance of Fish before another instance of Fish writes its copy.
#
command mv $tmpfile $Z_DATA
or command rm $tmpfile
end
end

View File

@ -0,0 +1,11 @@
function __z_clean -d "Clean up .z file to remove paths no longer valid"
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
while read line
set -l path (string split '|' $line)[1]
test -d $path; and echo $line
end <$Z_DATA >$tmpfile
command mv -f $tmpfile $Z_DATA
end
end

View File

@ -0,0 +1,13 @@
function __z_complete -d "add completions"
complete -c $Z_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $ZO_CMD -a "(__z -l | string replace -r '^\\S*\\s*' '')" -f -k
complete -c $Z_CMD -s c -l clean -d "Cleans out $Z_DATA"
complete -c $Z_CMD -s e -l echo -d "Prints best match, no cd"
complete -c $Z_CMD -s l -l list -d "List matches, no cd"
complete -c $Z_CMD -s p -l purge -d "Purges $Z_DATA"
complete -c $Z_CMD -s r -l rank -d "Searches by rank, cd"
complete -c $Z_CMD -s t -l recent -d "Searches by recency, cd"
complete -c $Z_CMD -s h -l help -d "Print help"
complete -c $Z_CMD -s x -l delete -d "Removes the current directory from $Z_DATA"
end

View File

@ -0,0 +1,5 @@
function _pisces_append -a text -d "Inserts a pair of strings (left-right) and puts the cursor between them"
commandline --insert -- $text
and _pisces_jump -(string length -- $text)
end

View File

@ -0,0 +1,17 @@
function _pisces_backspace -d "Overrides backspace to handle empty pairs removal"
set -l line (commandline | string join \n)
set -l index (commandline -C)
if [ $index -ge 1 ]
set -l char (string sub -s $index -l 1 -- "$line")
for pair in $pisces_pairs
set -l var (string split -- ',' $pair)
if [ $var[1] = $char ]
_pisces_remove $var
and return 0
end
end
end
commandline -f backward-delete-char
end

View File

@ -0,0 +1,20 @@
function _pisces_bind_pair -a mode left right -d "Creates bindings for the given pair: autoclose and skip closing symbol"
test -n $mode
or set mode default
set l $left
set r $right
set left (string escape -n -- $left)
set right (string escape -n -- $right)
if [ $left = $right ]
bind -M $mode $r "_pisces_insert_identical $right"
else
bind -M $mode $l "_pisces_insert_left $left $right"
bind -M $mode $r "_pisces_insert_right $right"
end
end

View File

@ -0,0 +1,13 @@
function _pisces_complete -d "Invokes complete with modification for vars before a closing double quote"
if commandline --paging-mode
down-or-search
else
set token (commandline -t)
# checking that the current token ends on a $var + '"'
if [ (string match -r '\$.*"$' -- "$token") ]
commandline -f delete-char # which is '"'
end
commandline -f complete
end
end

View File

@ -0,0 +1,8 @@
function _pisces_insert_identical -a text -d "The binding command for a pair where the left and right delimiters are identical"
if _pisces_should_insert $text
_pisces_skip $text
or _pisces_append $text
else
commandline -i -- $text
end
end

View File

@ -0,0 +1,5 @@
function _pisces_insert_left -a left right -d "The binding command to insert the left delimiter"
commandline -i -- $left
and _pisces_should_insert $right
and _pisces_append $right
end

View File

@ -0,0 +1,7 @@
function _pisces_insert_right -a right -d "The binding command to insert the right delimiter"
if _pisces_should_insert $right
_pisces_skip $right
else
commandline -i -- $right
end
end

View File

@ -0,0 +1,8 @@
function _pisces_jump -a n -d "Moves cursor by n/-n characters"
test -z $n
and set n 0
set current (commandline -C)
commandline -C (math "$current + $n")
end

Some files were not shown because too many files have changed in this diff Show More