-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpowershell_rc.ps1
More file actions
44 lines (38 loc) · 1.67 KB
/
powershell_rc.ps1
File metadata and controls
44 lines (38 loc) · 1.67 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
#close powershell with alt F4
Set-PSReadlineKeyHandler -Chord Alt+F4 -Function ViExit
#display messages
echo "commands - see a list of commands"
echo "links - see a list of links"
echo "spots - see a list of places"
function commands(){echo "see dc dd profiles down refresh links spots"}
function links(){echo "home box g mix web10 social" }
function spots(){echo "album caps shots pics self starlog"}
# commands
function see(){explorer .}
function dc(){docker-compose up --build}
function dcl(){docker-compose -f docker-compose-lite.yml up --build }
function dd(){docker-compose down}
function profiles(){code $env:HOMEPATH/Dropbox/shell_profiles}
function down($url){yt-dlp -o "%(title)s.%(ext)s" --format mp4 --write-description $url} #-x -k}
function serve(){python -m http.server}
function refresh(){. $profile}
$documents = [environment]::getfolderpath("mydocuments")
$videos = [environment]::getfolderpath("myvideos")
#links
function gpt {cd $documents/GitHub/chatbot-ui}
function box(){cd ~/Dropbox}
function g(){cd $documents/GitHub}
function home(){cd ~}
function mix(){cd "~\Dropbox\lil_k\mixxx"}
function web10(){cd $documents/GitHub/web10}
function net(){cd $documents/GitHub/web10-network}
function social(){cd $documents/GitHub/web10-social}
#spots
function starlog{cd "~\Dropbox\starlog"; start notepad++ .}
function album{cd "~\Dropbox\lil_k\;see"}
function caps(){cd "~\Dropbox\Capture";see}
function shots(){cd "~\Dropbox\Screenshots";see}
function pics(){cd "~\Dropbox\cute pics";see}
function vids(){cd $videos ;see}
function self(){cd "~\Dropbox\Self Learning";see}
function techno(){start chrome "https://open.spotify.com/playlist/37i9dQZF1E8OsggthlNulS?si=b3a911376edd4bda"}