Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dotfiles
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jørn Åne de Jong
dotfiles
Commits
6431a6d5
Commit
6431a6d5
authored
Jul 25, 2016
by
Jørn Åne
Committed by
Jørn Åne
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make prompts show whole hostname.
parent
0c1f6aab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
dot.bashrc
dot.bashrc
+1
-1
dot.config/fish/config.fish
dot.config/fish/config.fish
+4
-12
dot.tcshrc
dot.tcshrc
+1
-1
No files found.
dot.bashrc
View file @
6431a6d5
...
...
@@ -41,4 +41,4 @@ if [ "$PS1" ]; then
b_prompt='$ '
fi
fi
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}\
h
${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"
PS1="\n${c_reset}${c_user}\u${c_reset}@${c_host}\
H
${c_reset}:${c_path}\w${c_reset}\n${b_prompt}"
dot.config/fish/config.fish
View file @
6431a6d5
function fish_prompt
echo
set_color normal
set_color --bold
echo -ns "$USER"
set_color normal
echo -ns '@' (hostname -f) ':'
set_color --bold --background blue white
echo -ns (pwd)
set_color normal
echo
echo -ns "> "
function fish_prompt -d "Write out the prompt"
printf '\n%s%s%s%s@%s:%s%s%s\n> ' (set_color normal) (set_color --bold) (whoami) (set_color normal) (hostname) (set_color --bold --background blue white) (prompt_pwd) (set_color normal)
end
export LC_ALL=C
set fish_color_param normal
set fish_color_error normal
set fish_color_command normal\x1e\x2d\x2dbold
dot.tcshrc
View file @
6431a6d5
...
...
@@ -49,5 +49,5 @@ if ($?prompt) then
set c_path="37;44"
set b_prompt='%% '
endif
set prompt="\n%B%n%b@%
m
:%B%{\033[${c_path}m%}%~%b\n${b_prompt}"
set prompt="\n%B%n%b@%
M
:%B%{\033[${c_path}m%}%~%b\n${b_prompt}"
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment