summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authorjustsaumit <justsaumit@draconyan.xyz>2022-03-02 11:23:45 +0530
committerjustsaumit <justsaumit@draconyan.xyz>2022-03-02 11:23:45 +0530
commita754011fc58e83f38cadc5bc10492ab961c9c540 (patch)
treed7c3cd6fd254fb7e52759f77e44193bf103de177 /.bash_profile
parent98bbe7bd7fcec209e2408ff0b086858715ca89e0 (diff)
spring cleaning 0.1
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile33
1 files changed, 29 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile
index f17eabf..9afa7da 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -9,14 +9,13 @@
#Runs on log in
-export PATH="$PATH:$HOME/.scripts"
-#your $PATH env variable is a list of all your directories from which you can run commands without giving the whole location
+#your $PATH env variable is a list of all your directories from which you can run commands without giving the whole location
+#export PATH="$PATH:$HOME/.scripts"
+# Setting up default applications
export EDITOR="vim"
export TERMINAL="st"
export BROWSER="brave"
export READER="zathura"
-#export HABITICA_TOKEN=" "
-#export HABITICA_UUID=" "
@@ -28,3 +27,29 @@ export READER="zathura"
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
+
+
+
+#Switch escape and Caps Lock
+#sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null
+
+
+# Load powerline-go prompt
+function global:prompt {
+ $pwd = $ExecutionContext.SessionState.Path.CurrentLocation
+ $startInfo = New-Object System.Diagnostics.ProcessStartInfo
+ $startInfo.FileName = "powerline-go"
+ $startInfo.Arguments = "-shell bare"
+ $startInfo.Environment["TERM"] = "xterm-256color"
+ $startInfo.CreateNoWindow = $true
+ $startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8
+ $startInfo.RedirectStandardOutput = $true
+ $startInfo.UseShellExecute = $false
+ $startInfo.WorkingDirectory = $pwd
+ $process = New-Object System.Diagnostics.Process
+ $process.StartInfo = $startInfo
+ $process.Start() | Out-Null
+ $standardOut = $process.StandardOutput.ReadToEnd()
+ $process.WaitForExit()
+ $standardOut
+}