test
This commit is contained in:
27
roles/customize/files/Microsoft.PowerShell_profile.ps1
Normal file
27
roles/customize/files/Microsoft.PowerShell_profile.ps1
Normal file
@@ -0,0 +1,27 @@
|
||||
clear-host
|
||||
oh-my-posh init pwsh --config ~/.config/powershell/config.json | Invoke-Expression
|
||||
Set-PSReadLineOption -PredictionSource History
|
||||
|
||||
@(
|
||||
"cat,get-content"
|
||||
"cd,set-location"
|
||||
"clear,clear-host"
|
||||
"cp,copy-item"
|
||||
"history,get-history"
|
||||
"kill,stop-process"
|
||||
"ls,Get-ChildItem"
|
||||
"mv,move-item"
|
||||
"ps,get-process"
|
||||
"pwd,get-location"
|
||||
"which,get-command"
|
||||
"open,Invoke-Item"
|
||||
"basename,Split-Path"
|
||||
"realpath,resolve-path"
|
||||
) | ForEach-Object {
|
||||
$Alias = ($PSItem -split ",")[0]
|
||||
$value = ($PSItem -split ",")[1]
|
||||
Set-Alias -Name $Alias -Value $value -Option AllScope
|
||||
}
|
||||
|
||||
$env:POWERSHELL_TELEMETRY_OPTOUT = 1
|
||||
$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1
|
||||
16
roles/customize/files/popshell-config.json
Normal file
16
roles/customize/files/popshell-config.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"float": [
|
||||
{
|
||||
"class": "gnome-calculator"
|
||||
},
|
||||
{
|
||||
"class": "gnome-control-center"
|
||||
},
|
||||
{
|
||||
"class": "org.gnome.Nautilus"
|
||||
}
|
||||
],
|
||||
"skiptaskbarhidden": [],
|
||||
"log_on_focus": false,
|
||||
"default_pointer_position": "TOP_LEFT"
|
||||
}
|
||||
50
roles/customize/files/pwsh-config.json
Normal file
50
roles/customize/files/pwsh-config.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "right",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#00C5C7",
|
||||
"properties": {
|
||||
"time_format": "15:04:05"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " {{ .CurrentDate | date .Format }} ",
|
||||
"type": "time"
|
||||
}
|
||||
],
|
||||
"type": "prompt",
|
||||
"vertical_offset": -1
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#77E4F7",
|
||||
"properties": {
|
||||
"style": "full"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#FFE700",
|
||||
"style": "plain",
|
||||
"template": "{{ .HEAD }} ",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#43D426",
|
||||
"style": "plain",
|
||||
"template": "\u276f ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"version": 2
|
||||
}
|
||||
15
roles/customize/files/terminator
Normal file
15
roles/customize/files/terminator
Normal file
@@ -0,0 +1,15 @@
|
||||
[global_config]
|
||||
[keybindings]
|
||||
[profiles]
|
||||
[[default]]
|
||||
background_type = transparent
|
||||
cursor_color = "#aaaaaa"
|
||||
[layouts]
|
||||
[[default]]
|
||||
[[[window0]]]
|
||||
type = Window
|
||||
parent = ""
|
||||
[[[child1]]]
|
||||
type = Terminal
|
||||
parent = window0
|
||||
[plugins]
|
||||
118
roles/customize/files/zshrc
Normal file
118
roles/customize/files/zshrc
Normal file
@@ -0,0 +1,118 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export POWERSHELL_TELEMETRY_OPTOUT=1
|
||||
export PROMPT_EOL_MARK=''
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="eastwood"
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||
# a theme from this variable instead of looking in $ZSH/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment one of the following lines to change the auto-update behavior
|
||||
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# zstyle ':omz:update' frequency 13
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# You can also set it to another string to have that shown instead of the default red dots.
|
||||
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# You can set one of the optional three formats:
|
||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# or set a custom format using the strftime function format specifications,
|
||||
# see 'man strftime' for details.
|
||||
# HIST_STAMPS="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(
|
||||
git
|
||||
zsh-autosuggestions
|
||||
sudo
|
||||
web-search
|
||||
copypath
|
||||
copyfile
|
||||
copybuffer
|
||||
dirhistory
|
||||
jsontools
|
||||
kubectl
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
# Install Ruby Gems to ~/gems
|
||||
export GEM_HOME="$HOME/gems"
|
||||
export PATH="$HOME/gems/bin:/usr/local/go/bin:$PATH"
|
||||
@@ -88,7 +88,7 @@
|
||||
- name: Copy Config files
|
||||
become_user: user
|
||||
copy:
|
||||
src: "templates/{{ item.src }}"
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "~/.config/{{ item.dest }}/{{ item.destname }}"
|
||||
owner: "user"
|
||||
force: yes
|
||||
|
||||
16
roles/customize/templates/popshell-config.json
Normal file
16
roles/customize/templates/popshell-config.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"float": [
|
||||
{
|
||||
"class": "gnome-calculator"
|
||||
},
|
||||
{
|
||||
"class": "gnome-control-center"
|
||||
},
|
||||
{
|
||||
"class": "org.gnome.Nautilus"
|
||||
}
|
||||
],
|
||||
"skiptaskbarhidden": [],
|
||||
"log_on_focus": false,
|
||||
"default_pointer_position": "TOP_LEFT"
|
||||
}
|
||||
@@ -33,5 +33,6 @@ dconf:
|
||||
configs:
|
||||
- {src: 'terminator', dest: 'terminator', destname: 'config'}
|
||||
- {src: 'Microsoft.PowerShell_profile.ps1', dest: 'powershell', destname: 'Microsoft.PowerShell_profile.ps1'}
|
||||
#- {src: 'pwsh-config.json', dest: 'powershell', destname: 'config.json'}
|
||||
- {src: 'pwsh-config.json', dest: 'powershell', destname: 'config.json'}
|
||||
- {src: 'popshell-config.json', dest: 'pop-shell', destname: 'config.json'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user