-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared.ps1
More file actions
74 lines (59 loc) · 1.25 KB
/
Copy pathshared.ps1
File metadata and controls
74 lines (59 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Terminal look
Invoke-Expression (&starship init powershell)
# Autocomplete for general commands, coloring, and other utility.
Import-Module PSReadLine
Set-PSReadlineOption -Colors @{ "InlinePrediction"="DarkGray"}
Set-PSReadlineOption -Colors @{ "Command"="DarkCyan"}
Set-PSReadlineOption -Colors @{ "Parameter"="Green"}
Set-PSReadlineOption -Colors @{ "String"="Yellow"}
# Colors for fd, etc...
$env:LS_COLORS = $(vivid.exe generate rose-pine-dawn)
# Mute irritating beeps
Set-PSReadlineOption -BellStyle None
# More readable color for directories
$PSStyle.FileInfo.Directory = "`e[31;1m"
# Fix a bug where sometimes nvim is not cleared after exiting.
$env:TERM='xterm-256color'
# Make wsl start in home
function wslh {
wsl ~ @args
}
function gst {
git status
}
function gog {
param ( $1 )
git lg $1
}
function gaa {
git add *
}
# Set nvim config path to a more practical place
$env:XDG_CONFIG_HOME="$HOME"
# eza
function ezal {
param (
$1
)
eza --icons -a $1
}
# eza
function ezal {
param (
$1
)
eza --icons -a $1
}
function ezall {
param (
$1
)
eza --icons -al $1
}
# Aliases
sal -Name ls -Value ezal
sal -Name ll -value ezall
sal -Name fp -Value FPilot.exe
sal -Name n -Value nvim
sal -Name cat -Value bat
sal -Name grep -Value rg